다음을 통해 공유


ProxyAttribute.CreateInstance(Type) 메서드

정의

지정된 형식이 현재 컨텍스트에 있는지 여부에 따라 초기화되지 않은 MarshalByRefObject나 투명 프록시를 만듭니다.

public:
 virtual MarshalByRefObject ^ CreateInstance(Type ^ serverType);
public virtual MarshalByRefObject CreateInstance (Type serverType);
[System.Security.SecurityCritical]
public virtual MarshalByRefObject CreateInstance (Type serverType);
abstract member CreateInstance : Type -> MarshalByRefObject
override this.CreateInstance : Type -> MarshalByRefObject
[<System.Security.SecurityCritical>]
abstract member CreateInstance : Type -> MarshalByRefObject
override this.CreateInstance : Type -> MarshalByRefObject
Public Overridable Function CreateInstance (serverType As Type) As MarshalByRefObject

매개 변수

serverType
Type

인스턴스를 만들 개체 형식입니다.

반환

초기화되지 않은 MarshalByRefObject 또는 투명 프록시입니다.

특성

예제

// Create an instance of ServicedComponentProxy
virtual MarshalByRefObject^ CreateInstance( Type^ serverType ) override
{
   return ProxyAttribute::CreateInstance( serverType );
}
// Create an instance of ServicedComponentProxy
public override MarshalByRefObject CreateInstance(Type serverType)
{
   return base.CreateInstance(serverType);
}
' Create an instance of ServicedComponentProxy
Public Overrides Function CreateInstance(serverType As Type) As MarshalByRefObject
   Return MyBase.CreateInstance(serverType)
End Function 'CreateInstance

적용 대상