Application.GetDtsServerRoles(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回 Strings 陣列,其中列出資料夾可用的角色。
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[]
Strings 的陣列,每一個字串都包含一個角色名稱。
範例
下列程式碼範例示範如何取得伺服器角色,並假設變數已設定為反映您的特定伺服器名稱和資料夾路徑。
string[] availableRoles = app.GetDtsServerRoles(folderPath, myServerName);
Dim availableRoles() As String = app.GetDtsServerRoles(folderPath,myServerName)