Application.GetDtsServerRoles(String, 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

Integration Services サービスを実行しているインスタンスの名前です。

戻り値

String[]

String の配列です。各文字列にはロールの名前が含まれています。

次のコード例では、特定のサーバー名とフォルダー パスを反映して変数が設定されているものとして、サーバー ロールを取得する方法を示しています。

string[] availableRoles = app.GetDtsServerRoles(folderPath, myServerName);   
Dim availableRoles() As String =  app.GetDtsServerRoles(folderPath,myServerName)  

適用対象