言語

Application.GetDtsServerRoles(String, String) メソッド

定義

フォルダで利用可能な役割を一覧にした文字列の配列を返します。

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)  

適用対象