Поделиться через


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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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