Application.GetDtsServerRoles(String, String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
フォルダで利用可能な役割を一覧にした文字列の配列を返します。
public:
cli::array <System::String ^> ^ GetDtsServerRoles(System::String ^ sFolderPath, System::String ^ sServerName);
public string[] GetDtsServerRoles(string sFolderPath, string sServerName);
member this.GetDtsServerRoles : string * string -> string[]
Public Function GetDtsServerRoles (sFolderPath As String, sServerName As String) As String()
パラメーター
- sFolderPath
- String
あなたが興味を持っている役割のフォルダーです。
- sServerName
- String
統合サービスサービスを実行しているインスタンスの名前です。
返品
String[]
文字列の配列で、それぞれの文字列には役割名が含まれています。
例
以下のコード例は、変数が特定のサーバー名とフォルダパスを反映するように設定されている場合、サーバーロールを取得する方法を示しています。
string[] availableRoles = app.GetDtsServerRoles(folderPath, myServerName);
Dim availableRoles() As String = app.GetDtsServerRoles(folderPath,myServerName)