共用方式為


IDTSApplication100.GetDtsServerRoles 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Returns an array of Strings that lists the roles available for a folder.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Function GetDtsServerRoles ( _
    bstrFolderPath As String, _
    bstrServerName As String _
) As String()
'用途
Dim instance As IDTSApplication100 
Dim bstrFolderPath As String 
Dim bstrServerName As String 
Dim returnValue As String()

returnValue = instance.GetDtsServerRoles(bstrFolderPath, _
    bstrServerName)
string[] GetDtsServerRoles(
    string bstrFolderPath,
    string bstrServerName
)
array<String^>^ GetDtsServerRoles(
    [InAttribute] String^ bstrFolderPath, 
    [InAttribute] String^ bstrServerName
)
abstract GetDtsServerRoles : 
        bstrFolderPath:string * 
        bstrServerName:string -> string[] 
function GetDtsServerRoles(
    bstrFolderPath : String, 
    bstrServerName : String
) : String[]

參數

  • bstrFolderPath
    型別:System.String
    The folder whose roles you are interested in.
  • bstrServerName
    型別:System.String
    The name of the instance that is running the Integration Services service.

傳回值

型別:array<System.String[]
An array of Strings, each string containing a role name.

請參閱

參考

IDTSApplication100 介面

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間