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);
member this.GetDtsServerRoles : string * string -> string[]
Public Function GetDtsServerRoles (sFolderPath As String, sServerName As String) As String()

Parameters

sFolderPath
String

The folder whose roles you are interested in.

sServerName
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