RemotingConfiguration.IsWellKnownClientType 메서드

정의

지정된 개체 형식이 잘 알려진 클라이언트 형식으로 등록되어 있는지 여부를 확인합니다.

오버로드

Name Description
IsWellKnownClientType(Type)

지정된 개체 Type 가 잘 알려진 클라이언트 형식으로 등록되어 있는지 여부를 확인합니다.

IsWellKnownClientType(String, String)

형식 이름 및 어셈블리 이름으로 지정된 개체가 잘 알려진 클라이언트 형식으로 등록되어 있는지 여부를 확인합니다.

IsWellKnownClientType(Type)

지정된 개체 Type 가 잘 알려진 클라이언트 형식으로 등록되어 있는지 여부를 확인합니다.

public:
 static System::Runtime::Remoting::WellKnownClientTypeEntry ^ IsWellKnownClientType(Type ^ svrType);
public static System.Runtime.Remoting.WellKnownClientTypeEntry IsWellKnownClientType(Type svrType);
static member IsWellKnownClientType : Type -> System.Runtime.Remoting.WellKnownClientTypeEntry
Public Shared Function IsWellKnownClientType (svrType As Type) As WellKnownClientTypeEntry

매개 변수

svrType
Type

확인할 개체 Type 입니다.

반품

WellKnownClientTypeEntry 지정된 개체 형식에 해당하는 값입니다.

예외

호출 스택에서 더 높은 호출자 중 하나 이상에는 원격 유형 및 채널을 구성할 수 있는 권한이 없습니다.

예제

// Check whether the specified object type is registered as 
// well known client type or not.
WellKnownClientTypeEntry^ myWellKnownClientType = RemotingConfiguration::IsWellKnownClientType( MyServerImpl::typeid );
Console::WriteLine( "The Object type is {0}", myWellKnownClientType->ObjectType );
Console::WriteLine( "The Object Url is {0}", myWellKnownClientType->ObjectUrl );
// Check whether the specified object type is registered as
// well known client type or not.
WellKnownClientTypeEntry myWellKnownClientType =
    RemotingConfiguration.IsWellKnownClientType(typeof(MyServerImpl));
Console.WriteLine("The Object type is "
                  +myWellKnownClientType.ObjectType);
Console.WriteLine("The Object Url is "
                  +myWellKnownClientType.ObjectUrl);
' Check whether the specified object type is registered as 
' well known client type or not.
Dim myWellKnownClientType As WellKnownClientTypeEntry = _ 
                   RemotingConfiguration.IsWellKnownClientType(GetType(MyServerImpl))
Console.WriteLine("The Object type is " + myWellKnownClientType.ObjectType.ToString())
Console.WriteLine("The Object Url is " + myWellKnownClientType.ObjectUrl)

적용 대상

IsWellKnownClientType(String, String)

형식 이름 및 어셈블리 이름으로 지정된 개체가 잘 알려진 클라이언트 형식으로 등록되어 있는지 여부를 확인합니다.

public:
 static System::Runtime::Remoting::WellKnownClientTypeEntry ^ IsWellKnownClientType(System::String ^ typeName, System::String ^ assemblyName);
public static System.Runtime.Remoting.WellKnownClientTypeEntry IsWellKnownClientType(string typeName, string assemblyName);
static member IsWellKnownClientType : string * string -> System.Runtime.Remoting.WellKnownClientTypeEntry
Public Shared Function IsWellKnownClientType (typeName As String, assemblyName As String) As WellKnownClientTypeEntry

매개 변수

typeName
String

확인할 개체의 형식 이름입니다.

assemblyName
String

확인할 개체의 어셈블리 이름입니다.

반품

WellKnownClientTypeEntry 지정된 개체 형식에 해당하는 값입니다.

예외

호출 스택에서 더 높은 호출자 중 하나 이상에는 원격 유형 및 채널을 구성할 수 있는 권한이 없습니다.

예제

MyServerImpl ^ myObject = gcnew MyServerImpl;

// Get the assembly for the 'MyServerImpl' object.
Assembly^ myAssembly = Assembly::GetAssembly( MyServerImpl::typeid );
AssemblyName^ myName = myAssembly->GetName();

// Check whether the specified object type is registered as
// well-known client type.
WellKnownClientTypeEntry^ myWellKnownClientType = RemotingConfiguration::IsWellKnownClientType( MyServerImpl::typeid->FullName, myName->Name );
Console::WriteLine( "The Object type :{0}", myWellKnownClientType->ObjectType );
Console::WriteLine( "The Object Uri :{0}", myWellKnownClientType->ObjectUrl );
 MyServerImpl myObject = new MyServerImpl();
 // Get the assembly for the 'MyServerImpl' object.
 Assembly myAssembly = Assembly.GetAssembly(typeof(MyServerImpl));
 AssemblyName myName = myAssembly.GetName();
// Check whether the specified object type is registered as
// well-known client type.
WellKnownClientTypeEntry myWellKnownClientType =
   RemotingConfiguration.IsWellKnownClientType(
                     (typeof(MyServerImpl)).FullName,myName.Name);
Console.WriteLine("The Object type :"
                +myWellKnownClientType.ObjectType);
Console.WriteLine("The Object Uri :"
                +myWellKnownClientType.ObjectUrl);
Dim myObject As New MyServerImpl()
' Get the assembly for the 'MyServerImpl' object.
Dim myAssembly As [Assembly] = [Assembly].GetAssembly(GetType(MyServerImpl))
Dim myName As AssemblyName = myAssembly.GetName()
' Check whether the specified object type is registered as
' well-known client type.
Dim myWellKnownClientType As WellKnownClientTypeEntry = _
     RemotingConfiguration.IsWellKnownClientType(GetType(MyServerImpl).FullName, myName.Name)
Console.WriteLine("The Object type :" + myWellKnownClientType.ObjectType.ToString())
Console.WriteLine("The Object Uri :" + myWellKnownClientType.ObjectUrl)

적용 대상