_PropertyInfo.GetSetMethod 메서드

정의

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetSetMethod 제공합니다.

오버로드

Name Description
GetSetMethod(Boolean)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetSetMethod(Boolean) 제공합니다.

GetSetMethod()

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetSetMethod() 제공합니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 이 GetSetMethod 속성의 MethodInfoset 접근자를 나타내는 개체를 반환합니다.

GetSetMethod(Boolean)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetSetMethod(Boolean) 제공합니다.

public:
 System::Reflection::MethodInfo ^ GetSetMethod(bool nonPublic);
public System.Reflection.MethodInfo GetSetMethod(bool nonPublic);
abstract member GetSetMethod : bool -> System.Reflection.MethodInfo
Public Function GetSetMethod (nonPublic As Boolean) As MethodInfo

매개 변수

nonPublic
Boolean

true비공용 접근자를 반환하려면 이고, 그렇지 않으면 . false

반품

다음 표의 값 중 하나입니다.

의미
MethodInfo 이 속성의 메서드를 Set 나타내는 개체입니다. set 접근자가 public이거나 매개 nonPublic 변수가 true 고 접근자가 public이 set 아닌 경우
null nonPublic 매개 변수가 true있지만 속성이 읽기 전용이거나 매개 nonPublic 변수가 false 있고 접근자가 set public이 아니거나 접근자가 없습니다set.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 GetSetMethod 이 속성에 대한 접근자를 set 반환합니다.

적용 대상

GetSetMethod()

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetSetMethod() 제공합니다.

public:
 System::Reflection::MethodInfo ^ GetSetMethod();
public System.Reflection.MethodInfo GetSetMethod();
abstract member GetSetMethod : unit -> System.Reflection.MethodInfo
Public Function GetSetMethod () As MethodInfo

반품

MethodInfo 접근자가 public이거나 Set 접근자가 set public이 아닌 경우 null 이 속성의 메서드를 set 나타내는 개체입니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

이 메서드는 GetSetMethod 이 속성에 대한 public set 접근자를 반환합니다.

적용 대상