MarshalByRefObject.CreateObjRef(Type) Método
Definición
Crea un objeto que contiene toda la información relevante necesaria para generar un proxy utilizado para comunicarse con un objeto remoto.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public:
virtual System::Runtime::Remoting::ObjRef ^ CreateObjRef(Type ^ requestedType);
public virtual System.Runtime.Remoting.ObjRef CreateObjRef (Type requestedType);
[System.Security.SecurityCritical]
public virtual System.Runtime.Remoting.ObjRef CreateObjRef (Type requestedType);
abstract member CreateObjRef : Type -> System.Runtime.Remoting.ObjRef
override this.CreateObjRef : Type -> System.Runtime.Remoting.ObjRef
[<System.Security.SecurityCritical>]
abstract member CreateObjRef : Type -> System.Runtime.Remoting.ObjRef
override this.CreateObjRef : Type -> System.Runtime.Remoting.ObjRef
Public Overridable Function CreateObjRef (requestedType As Type) As ObjRef
Parámetros
- requestedType
- Type
Type del objeto al que hará referencia el nuevo ObjRef.The Type of the object that the new ObjRef will reference.
Devoluciones
Información necesaria para generar un proxy.Information required to generate a proxy.
- Atributos
Excepciones
Esta instancia no es un objeto de comunicación remota válido.This instance is not a valid remoting object.
El llamador inmediato no tiene permisos de infraestructura.The immediate caller does not have infrastructure permission.
Comentarios
El CreateObjRef método es llamado por métodos de creación de objetos remotos como AppDomain.CreateInstance y AppDomain.CreateInstanceAndUnwrap .The CreateObjRef method is called by remote object creation methods such as AppDomain.CreateInstance and AppDomain.CreateInstanceAndUnwrap. En la mayoría de los casos, no es necesario invalidar este método.In most cases, there is no need to override this method.