RemotingConfiguration.GetRegisteredActivatedServiceTypes 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 servicio que se pueden activar cuando lo solicita un cliente.
public:
static cli::array <System::Runtime::Remoting::ActivatedServiceTypeEntry ^> ^ GetRegisteredActivatedServiceTypes();
public static System.Runtime.Remoting.ActivatedServiceTypeEntry[] GetRegisteredActivatedServiceTypes ();
static member GetRegisteredActivatedServiceTypes : unit -> System.Runtime.Remoting.ActivatedServiceTypeEntry[]
Public Shared Function GetRegisteredActivatedServiceTypes () As ActivatedServiceTypeEntry()
Devoluciones
Matriz de tipos de objetos registrados en el servicio que se pueden activar cuando lo solicita un cliente.
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
// Check whether the 'MyServerImpl' object is allowed for
// activation or not.
if ( RemotingConfiguration::IsActivationAllowed( MyServerImpl::typeid ) )
{
// Get the registered activated service types .
array<ActivatedServiceTypeEntry^>^myActivatedServiceEntries = RemotingConfiguration::GetRegisteredActivatedServiceTypes();
Console::WriteLine( "The Length of the registered activated service type array is {0}", myActivatedServiceEntries->Length );
Console::WriteLine( "The Object type is:{0}", myActivatedServiceEntries[ 0 ]->ObjectType );
}
// Check whether the 'MyServerImpl' object is allowed for
// activation or not.
if(RemotingConfiguration.IsActivationAllowed(typeof(MyServerImpl)))
{
// Get the registered activated service types .
ActivatedServiceTypeEntry[] myActivatedServiceEntries =
RemotingConfiguration.GetRegisteredActivatedServiceTypes();
Console.WriteLine("The Length of the registered activated service"
+" type array is "+myActivatedServiceEntries.Length);
Console.WriteLine("The Object type is:"
+myActivatedServiceEntries[0].ObjectType);
}
' Check whether the 'MyServerImpl' object is allowed for activation or not.
If RemotingConfiguration.IsActivationAllowed(GetType(MyServerImpl)) Then
' Get the registered activated service types .
Dim myActivatedServiceEntries As ActivatedServiceTypeEntry() = _
RemotingConfiguration.GetRegisteredActivatedServiceTypes()
Console.WriteLine("The Length of the registered activated service type array is " + _
myActivatedServiceEntries.Length.ToString())
Console.WriteLine("The Object type is:" + _
myActivatedServiceEntries(0).ObjectType.ToString())
End If
Comentarios
Para obtener una descripción detallada de los objetos activados por el cliente, consulte Activación de cliente.