Application.GetDtsServerRoles(String, String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
폴더에 사용할 수 있는 역할을 나열한 문자열 배열을 반환합니다.
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
통합 서비스 서비스를 실행하는 인스턴스의 이름입니다.
반품
String[]
각 문자열에는 역할 이름이 포함된 문자열 배열입니다.
예제
다음 코드 예시는 변수가 특정 서버 이름과 폴더 경로를 반영하도록 설정되어 있다고 가정할 때 서버 역할을 가져오는 방법을 보여줍니다.
string[] availableRoles = app.GetDtsServerRoles(folderPath, myServerName);
Dim availableRoles() As String = app.GetDtsServerRoles(folderPath,myServerName)