RemotingServices.GetServerTypeForUri(String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Type 지정된 URI를 사용하여 개체의 값을 반환합니다.
public:
static Type ^ GetServerTypeForUri(System::String ^ URI);
public static Type GetServerTypeForUri(string URI);
[System.Security.SecurityCritical]
public static Type GetServerTypeForUri(string URI);
static member GetServerTypeForUri : string -> Type
[<System.Security.SecurityCritical>]
static member GetServerTypeForUri : string -> Type
Public Shared Function GetServerTypeForUri (URI As String) As Type
매개 변수
반품
Type 지정된 URI를 가진 개체의 개체입니다.
- 특성
예외
즉시 호출자에게 인프라 권한이 없거나 호출 스택에서 더 높은 호출자 중 하나 이상에는 공용이 아닌 멤버의 형식 정보를 검색할 수 있는 권한이 없습니다.
예제
Console::WriteLine( "Server type: {0}", RemotingServices::GetServerTypeForUri( const_cast<String^>(myObjectUri) ) );
Console.WriteLine("Server type: {0}",
RemotingServices.GetServerTypeForUri(myObjectUri));
Console.WriteLine("Server type: {0}", _
RemotingServices.GetServerTypeForUri(myObjectUri).ToString())
설명
원격은 URI GetServerTypeForUri 를 사용하여 엔드포인트를 식별하기 때문에 현재 메서드는 URI에서 연결된 형식 개체를 반환하기 때문에 개체를 사용하는 IMessage 원격 인프라(예: 채널 싱크, 동적 싱크 및 컨텍스트 싱크)의 플러그형 부분에서 매우 유용합니다.