MarshalByRefObject.CreateObjRef(Type) 메서드

정의

원격 개체와 통신하는 데 사용되는 프록시를 생성하는 데 필요한 모든 관련 정보를 포함하는 개체를 만듭니다.

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

매개 변수

requestedType
Type

TypeObjRef 개체가 참조할 개체입니다.

반품

프록시를 생성하는 데 필요한 정보입니다.

특성

예외

이 인스턴스는 유효한 원격 개체가 아닙니다.

즉시 호출자에게 인프라 권한이 없습니다.

설명

메서드는 CreateObjRef 원격 개체 만들기 메서드(예: 및 .)에 AppDomain.CreateInstance 의해 호출됩니다 AppDomain.CreateInstanceAndUnwrap. 대부분의 경우 이 메서드를 재정의할 필요가 없습니다.

적용 대상