次の方法で共有


Application.GetDtsServerRoles Method

フォルダが使用できるロールの一覧を示す String の配列を返します。

名前空間: Microsoft.SqlServer.Dts.Runtime
アセンブリ: Microsoft.SqlServer.ManagedDTS (microsoft.sqlserver.manageddts.dll 内)

構文

'宣言
Public Function GetDtsServerRoles ( _
    sFolderPath As String, _
    sServerName As String _
) As String()
public string[] GetDtsServerRoles (
    string sFolderPath,
    string sServerName
)
public:
array<String^>^ GetDtsServerRoles (
    String^ sFolderPath, 
    String^ sServerName
)
public String[] GetDtsServerRoles (
    String sFolderPath, 
    String sServerName
)
public function GetDtsServerRoles (
    sFolderPath : String, 
    sServerName : String
) : String[]

パラメータ

  • sFolderPath
    対象とするロールを保持しているフォルダです。
  • sServerName
    Integration Services サービスを実行しているインスタンスの名前です。

戻り値

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

使用例

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

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

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

Application Class
Application Members
Microsoft.SqlServer.Dts.Runtime Namespace