Ler em inglês

Compartilhar via


Método GetDtsServerRoles

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

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (em Microsoft.SqlServer.ManagedDTS.dll)

Sintaxe

public string[] GetDtsServerRoles(
    string sFolderPath,
    string sServerName
)

Parâmetros

  • sServerName
    Tipo: System. . :: . .String
    The name of the instance that is running the Integration Services service.

Valor de retorno

Tipo: array<System. . :: . .String> [] () [] []
An array of Strings, each string containing a role name.

Exemplos

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);