다음을 통해 공유


Application.GetDtsServerRoles(String, String) 메서드

정의

폴더에 사용 가능한 역할을 나열하는 Strings의 배열을 반환합니다.

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

매개 변수

sFolderPath
String

해당 역할을 확인할 폴더입니다.

sServerName
String

Integration Services 서비스를 실행하는 인스턴스의 이름입니다.

반환

String[]

String의 배열입니다. 각 문자열에는 역할 이름이 포함됩니다.

예제

다음 코드 예제에서는 변수가 특정 서버 이름 및 폴더 경로를 반영하도록 설정되었다고 가정하여 서버 역할을 검색하는 방법을 보여 줍니다.

string[] availableRoles = app.GetDtsServerRoles(folderPath, myServerName);   
Dim availableRoles() As String =  app.GetDtsServerRoles(folderPath,myServerName)  

적용 대상