RemotingConfiguration.IsRemotelyActivatedClientType Method

Definition

Checks whether the specified object type is registered as a remotely activated client type.

Overloads

IsRemotelyActivatedClientType(String, String)

Checks whether the object specified by its type name and assembly name is registered as a remotely activated client type.

IsRemotelyActivatedClientType(Type)

Checks whether the specified object Type is registered as a remotely activated client type.

IsRemotelyActivatedClientType(String, String)

Checks whether the object specified by its type name and assembly name is registered as a remotely activated client type.

C#
public static System.Runtime.Remoting.ActivatedClientTypeEntry IsRemotelyActivatedClientType(string typeName, string assemblyName);

Parameters

typeName
String

The type name of the object to check.

assemblyName
String

The assembly name of the object to check.

Returns

The ActivatedClientTypeEntry that corresponds to the specified object type.

Exceptions

At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.

Examples

C#
    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");

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

IsRemotelyActivatedClientType(Type)

Checks whether the specified object Type is registered as a remotely activated client type.

C#
public static System.Runtime.Remoting.ActivatedClientTypeEntry IsRemotelyActivatedClientType(Type svrType);

Parameters

svrType
Type

The object type to check.

Returns

The ActivatedClientTypeEntry that corresponds to the specified object type.

Exceptions

At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.

Examples

C#
// 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);

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1