Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

RemotingConfiguration.IsWellKnownClientType Method (String, String)

Checks whether the object specified by its type name and assembly name is registered as a well-known client type.

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)

public static WellKnownClientTypeEntry IsWellKnownClientType (
	string typeName,
	string assemblyName
)
public static WellKnownClientTypeEntry IsWellKnownClientType (
	String typeName, 
	String assemblyName
)
public static function IsWellKnownClientType (
	typeName : String, 
	assemblyName : String
) : WellKnownClientTypeEntry

Parameters

typeName

The type name of the object to check.

assemblyName

The assembly name of the object to check.

Return Value

The WellKnownClientTypeEntry that corresponds to the specified object type.
Exception typeCondition

SecurityException

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

 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);

MyServerImpl myObject = new MyServerImpl();
// Get the assembly for the 'MyServerImpl' object.
Assembly myAssembly = Assembly.GetAssembly(MyServerImpl.class.
    ToType());
AssemblyName myName = myAssembly.GetName();
// Check whether the specified object type is registered as
// well-known client type.
WellKnownClientTypeEntry myWellKnownClientType = 
    RemotingConfiguration.IsWellKnownClientType(MyServerImpl.class.
    ToType().get_FullName(), myName.get_Name());
Console.WriteLine("The Object type :" + myWellKnownClientType.
    get_ObjectType());
Console.WriteLine("The Object Uri :" + myWellKnownClientType.
    get_ObjectUrl());

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.