RemotingConfiguration.GetRegisteredWellKnownClientTypes Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Recupera una matriz de tipos de objetos registrados en el cliente como tipos conocidos.
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()
Devoluciones
Matriz de tipos de objetos registrados en el cliente como tipos conocidos.
Excepciones
Al menos uno de los llamadores situados en la parte superior de la pila de llamadas no tiene permiso para configurar los tipos y canales de comunicación remota.
Ejemplos
// 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())
Comentarios
Los tipos de objetos conocidos pueden ser una sola llamada o singleton. Si un tipo de objeto es una sola llamada, se crea una nueva instancia de él cada vez que entra una llamada del cliente. Todas las llamadas a un objeto singleton se controlan mediante una instancia de ese objeto.
Para obtener una descripción más detallada de los objetos conocidos, consulte Activación del servidor.