RemotingConfiguration.IsRemotelyActivatedClientType 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 개체 형식이 원격 활성 클라이언트 형식으로 등록되었는지 여부를 확인합니다.
오버로드
IsRemotelyActivatedClientType(String, String) |
형식 이름과 어셈블리 이름이 지정하는 개체가 원격 활성 클라이언트 형식으로 등록되었는지 여부를 확인합니다. |
IsRemotelyActivatedClientType(Type) |
지정된 개체 Type이 원격 활성 클라이언트 형식으로 등록되었는지 여부를 확인합니다. |
IsRemotelyActivatedClientType(String, String)
형식 이름과 어셈블리 이름이 지정하는 개체가 원격 활성 클라이언트 형식으로 등록되었는지 여부를 확인합니다.
public:
static System::Runtime::Remoting::ActivatedClientTypeEntry ^ IsRemotelyActivatedClientType(System::String ^ typeName, System::String ^ assemblyName);
public static System.Runtime.Remoting.ActivatedClientTypeEntry IsRemotelyActivatedClientType (string typeName, string assemblyName);
static member IsRemotelyActivatedClientType : string * string -> System.Runtime.Remoting.ActivatedClientTypeEntry
Public Shared Function IsRemotelyActivatedClientType (typeName As String, assemblyName As String) As ActivatedClientTypeEntry
매개 변수
- typeName
- String
확인할 개체의 형식 이름입니다.
- assemblyName
- String
확인할 개체의 어셈블리 이름입니다.
반환
지정된 개체 형식에 해당하는 ActivatedClientTypeEntry입니다.
예외
호출 스택의 상위 호출자 중 하나 이상에게 원격 형식 및 채널을 구성하기 위한 권한이 없는 경우
예제
Assembly^ myAssembly = Assembly::GetAssembly( MyServerImpl::typeid );
AssemblyName^ myName = myAssembly->GetName();
// Check whether the 'MyServerImpl' type is registered as
// a remotely activated client type.
ActivatedClientTypeEntry^ myActivatedClientEntry =
RemotingConfiguration::IsRemotelyActivatedClientType( MyServerImpl::typeid->FullName, myName->Name );
Console::WriteLine( "The Object type : {0}", myActivatedClientEntry->ObjectType );
Console::WriteLine( "The Application Url : {0}", myActivatedClientEntry->ApplicationUrl );
if (myActivatedClientEntry)
Console::WriteLine( "The object is client activated");
else
Console::WriteLine("The object is not client activated");
Assembly myAssembly = Assembly.GetAssembly(typeof(MyServerImpl));
AssemblyName myName = myAssembly.GetName();
// Check whether the 'MyServerImpl' type is registered as
// a remotely activated client type.
ActivatedClientTypeEntry myActivatedClientEntry =
RemotingConfiguration.IsRemotelyActivatedClientType(
(typeof(MyServerImpl)).FullName,myName.Name);
Console.WriteLine("The Object type : "
+myActivatedClientEntry.ObjectType);
Console.WriteLine("The Application Url : "
+myActivatedClientEntry.ApplicationUrl);
if (myActivatedClientEntry != null)
Console.WriteLine("Object is client activated");
else
Console.WriteLine("Object is not client activated");
Dim myAssembly As [Assembly] = [Assembly].GetAssembly(GetType(MyServerImpl))
Dim myName As AssemblyName = myAssembly.GetName()
' Check whether the 'MyServerImpl' type is registered as
' a remotely activated client type.
Dim myActivatedClientEntry As ActivatedClientTypeEntry = _
RemotingConfiguration.IsRemotelyActivatedClientType(GetType(MyServerImpl).FullName, _
myName.Name)
Console.WriteLine("The Object type : " + myActivatedClientEntry.ObjectType.ToString())
Console.WriteLine("The Application Url : " + myActivatedClientEntry.ApplicationUrl)
if myActivatedClientEntry is nothing then
Console.WriteLine("The object is not client activated")
else
Console.WriteLine("The object is client activated")
end if
추가 정보
적용 대상
IsRemotelyActivatedClientType(Type)
지정된 개체 Type이 원격 활성 클라이언트 형식으로 등록되었는지 여부를 확인합니다.
public:
static System::Runtime::Remoting::ActivatedClientTypeEntry ^ IsRemotelyActivatedClientType(Type ^ svrType);
public static System.Runtime.Remoting.ActivatedClientTypeEntry IsRemotelyActivatedClientType (Type svrType);
static member IsRemotelyActivatedClientType : Type -> System.Runtime.Remoting.ActivatedClientTypeEntry
Public Shared Function IsRemotelyActivatedClientType (svrType As Type) As ActivatedClientTypeEntry
매개 변수
- svrType
- Type
확인할 개체 형식입니다.
반환
지정된 개체 형식에 해당하는 ActivatedClientTypeEntry입니다.
예외
호출 스택의 상위 호출자 중 하나 이상에게 원격 형식 및 채널을 구성하기 위한 권한이 없는 경우
예제
// Check whether the 'MyServerImpl' type is registered as
// a remotely activated client type.
ActivatedClientTypeEntry^ myActivatedClientEntry = RemotingConfiguration::IsRemotelyActivatedClientType( MyServerImpl::typeid);
Console::WriteLine( "The Object type is {0}", myActivatedClientEntry->ObjectType );
Console::WriteLine( "The Application Url is {0}", myActivatedClientEntry->ApplicationUrl );
// Check whether the 'MyServerImpl' type is registered as
// a remotely activated client type.
ActivatedClientTypeEntry myActivatedClientEntry =
RemotingConfiguration.IsRemotelyActivatedClientType(
typeof(MyServerImpl));
Console.WriteLine("The Object type is "
+myActivatedClientEntry.ObjectType);
Console.WriteLine("The Application Url is "
+myActivatedClientEntry.ApplicationUrl);
' Check whether the 'MyServerImpl' type is registered as a remotely activated client type.
Dim myActivatedClientEntry As ActivatedClientTypeEntry = _
RemotingConfiguration.IsRemotelyActivatedClientType(GetType(MyServerImpl))
Console.WriteLine("The Object type is " + myActivatedClientEntry.ObjectType.ToString())
Console.WriteLine("The Application Url is " + _
myActivatedClientEntry.ApplicationUrl.ToString())
추가 정보
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기