MarshalByRefObject.CreateObjRef(Type) Metod

Definition

Skapar ett objekt som innehåller all relevant information som krävs för att generera en proxy som används för att kommunicera med ett fjärrobjekt.

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

Parametrar

requestedType
Type

Det Type objekt som den nya ObjRef refererar till.

Returer

Information som krävs för att generera en proxyserver.

Attribut

Undantag

Den här instansen är inte ett giltigt fjärrkommunikationsobjekt.

Den omedelbara anroparen har inte infrastrukturbehörighet.

Kommentarer

Metoden CreateObjRef anropas av metoder för att skapa fjärrobjekt, till exempel AppDomain.CreateInstance och AppDomain.CreateInstanceAndUnwrap. I de flesta fall behöver du inte åsidosätta den här metoden.

Gäller för