RemotingConfiguration.GetRegisteredWellKnownClientTypes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves an array of object types registered on the client end as well-known types.
public:
static cli::array <System::Runtime::Remoting::WellKnownClientTypeEntry ^> ^ GetRegisteredWellKnownClientTypes();
public static System.Runtime.Remoting.WellKnownClientTypeEntry[] GetRegisteredWellKnownClientTypes ();
static member GetRegisteredWellKnownClientTypes : unit -> System.Runtime.Remoting.WellKnownClientTypeEntry[]
Public Shared Function GetRegisteredWellKnownClientTypes () As WellKnownClientTypeEntry()
Returns
An array of object types registered on the client end as well-known types.
Exceptions
At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.
Examples
// Get the well-known types registered at the client.
array<WellKnownClientTypeEntry^>^myEntries = RemotingConfiguration::GetRegisteredWellKnownClientTypes();
Console::WriteLine( "The number of WellKnownClientTypeEntries are:{0}", myEntries->Length );
Console::WriteLine( "The Object type is:{0}", myEntries[ 0 ]->ObjectType );
Console::WriteLine( "The Object Url is:{0}", myEntries[ 0 ]->ObjectUrl );
// Get the well-known types registered at the client.
WellKnownClientTypeEntry[] myEntries =
RemotingConfiguration.GetRegisteredWellKnownClientTypes();
Console.WriteLine("The number of WellKnownClientTypeEntries are:"
+myEntries.Length);
Console.WriteLine("The Object type is:"+myEntries[0].ObjectType);
Console.WriteLine("The Object Url is:"+myEntries[0].ObjectUrl);
' Get the well-known types registered at the client.
Dim myEntries As WellKnownClientTypeEntry() = _
RemotingConfiguration.GetRegisteredWellKnownClientTypes()
Console.WriteLine("The number of WellKnownClientTypeEntries are:" + _
myEntries.Length.ToString())
Console.WriteLine("The Object type is:" + myEntries(0).ObjectType.ToString())
Console.WriteLine("The Object Url is:" + myEntries(0).ObjectUrl.ToString())
Remarks
Well-known object types can be either single call or singleton. If an object type is single call, then a new instance of it is created each time a call from the client comes in. All calls to a singleton object are handled by one instance of that object.
For a more detailed description of well-known objects, see Server Activation.