MemberDescriptor.GetInvocationTarget(Type, Object) 메서드

정의

멤버를 호출하는 동안 사용해야 하는 개체를 검색합니다.

protected:
 virtual System::Object ^ GetInvocationTarget(Type ^ type, System::Object ^ instance);
protected virtual object GetInvocationTarget (Type type, object instance);
protected virtual object? GetInvocationTarget (Type type, object instance);
abstract member GetInvocationTarget : Type * obj -> obj
override this.GetInvocationTarget : Type * obj -> obj
Protected Overridable Function GetInvocationTarget (type As Type, instance As Object) As Object

매개 변수

type
Type

호출 대상의 Type입니다.

instance
Object

잠재적인 호출 대상입니다.

반환

멤버를 호출하는 동안 사용할 개체입니다.

예외

type 또는 instancenull인 경우

설명

일반적으로 반환 값은 매개 변수와 동일합니다 instance . 다른 개체가 이 instance 연결되어 있거나 instance 사용자 지정 형식 설명자인 경우 메서드는 GetInvocationTarget 다른 값을 반환할 수 있습니다.

적용 대상