RemotingConfiguration.IsRemotelyActivatedClientType Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Memeriksa apakah tipe objek yang ditentukan terdaftar sebagai jenis klien yang diaktifkan dari jarak jauh.
Overload
| IsRemotelyActivatedClientType(String, String) |
Memeriksa apakah objek yang ditentukan oleh nama jenis dan nama rakitannya terdaftar sebagai jenis klien yang diaktifkan dari jarak jauh. |
| IsRemotelyActivatedClientType(Type) |
Memeriksa apakah objek Type yang ditentukan terdaftar sebagai jenis klien yang diaktifkan dari jarak jauh. |
IsRemotelyActivatedClientType(String, String)
Memeriksa apakah objek yang ditentukan oleh nama jenis dan nama rakitannya terdaftar sebagai jenis klien yang diaktifkan dari jarak jauh.
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
Parameter
- typeName
- String
Nama jenis objek yang akan diperiksa.
- assemblyName
- String
Nama rakitan objek yang akan diperiksa.
Mengembalikan
ActivatedClientTypeEntry yang sesuai dengan jenis objek yang ditentukan.
Pengecualian
Setidaknya salah satu penelepon yang lebih tinggi di tumpukan panggilan tidak memiliki izin untuk mengonfigurasi jenis jarak jauh dan saluran.
Contoh
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
Lihat juga
Berlaku untuk
IsRemotelyActivatedClientType(Type)
Memeriksa apakah objek Type yang ditentukan terdaftar sebagai jenis klien yang diaktifkan dari jarak jauh.
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
Parameter
- svrType
- Type
Jenis objek yang akan diperiksa.
Mengembalikan
ActivatedClientTypeEntry yang sesuai dengan jenis objek yang ditentukan.
Pengecualian
Setidaknya salah satu penelepon yang lebih tinggi di tumpukan panggilan tidak memiliki izin untuk mengonfigurasi jenis jarak jauh dan saluran.
Contoh
// 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())