Application.GetDtsServerRoles Method
Returns an array of Strings that lists the roles available for a folder.
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in 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
The folder whose roles you are interested in.
- sServerName
The name of the instance that is running the Integration Services service.
傳回值
An array of Strings, each string containing a role name.
範例
The following code example shows how to retrieve the server roles, assuming the variables have been set to reflect your specific server name and folder path.
string[] availableRoles = app.GetDtsServerRoles(folderPath, myServerName);
Dim availableRoles() As String = app.GetDtsServerRoles(folderPath,myServerName)
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
Application Class
Application Members
Microsoft.SqlServer.Dts.Runtime Namespace