MarshalByRefObject.CreateObjRef(Type) Metode

Definisi

Membuat objek yang berisi semua informasi relevan yang diperlukan untuk menghasilkan proksi yang digunakan untuk berkomunikasi dengan objek jarak jauh.

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

Parameter

requestedType
Type

Objek Type yang akan dirujuk ObjRef baru.

Mengembalikan

Informasi yang diperlukan untuk menghasilkan proksi.

Atribut

Pengecualian

Instans ini bukan objek jarak jauh yang valid.

Pemanggil langsung tidak memiliki izin infrastruktur.

Keterangan

Metode CreateObjRef ini disebut dengan metode pembuatan objek jarak jauh seperti AppDomain.CreateInstance dan AppDomain.CreateInstanceAndUnwrap. Dalam kebanyakan kasus, tidak perlu mengambil alih metode ini.

Berlaku untuk