Application.GetDtsServerRoles(String, String) Application.GetDtsServerRoles(String, String) Application.GetDtsServerRoles(String, String) Method

Definition

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

public:
 cli::array <System::String ^> ^ GetDtsServerRoles(System::String ^ sFolderPath, System::String ^ sServerName);
public string[] GetDtsServerRoles (string sFolderPath, string sServerName);
Public Function GetDtsServerRoles (sFolderPath As String, sServerName As String) As String()

Parameters

sFolderPath
String String String

The folder whose roles you are interested in.

sServerName
String String String

The name of the instance that is running the Integration Services service.

Returns

String[]

An array of Strings, each string containing a role name.

Examples

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)  

Applies to