다음을 통해 공유


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