_PropertyInfo.GetGetMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides COM objects with version-independent access to the GetGetMethod methods.
Overloads
GetGetMethod() |
Provides COM objects with version-independent access to the GetGetMethod() method. |
GetGetMethod(Boolean) |
Provides COM objects with version-independent access to the GetGetMethod(Boolean) method. |
Remarks
This method is for access to managed classes from unmanaged code and should not be called from managed code.
The GetGetMethod methods return a MethodInfo object representing the get
accessor for this property.
GetGetMethod()
Provides COM objects with version-independent access to the GetGetMethod() method.
public:
System::Reflection::MethodInfo ^ GetGetMethod();
public System.Reflection.MethodInfo GetGetMethod ();
abstract member GetGetMethod : unit -> System.Reflection.MethodInfo
Public Function GetGetMethod () As MethodInfo
Returns
A MethodInfo object representing the public get
accessor for this property, or null
if the get
accessor is non-public or does not exist.
Remarks
This method is for access to managed classes from unmanaged code and should not be called from managed code.
The GetGetMethod method returns the public get
accessor for this property.
Applies to
GetGetMethod(Boolean)
Provides COM objects with version-independent access to the GetGetMethod(Boolean) method.
public:
System::Reflection::MethodInfo ^ GetGetMethod(bool nonPublic);
public System.Reflection.MethodInfo GetGetMethod (bool nonPublic);
abstract member GetGetMethod : bool -> System.Reflection.MethodInfo
Public Function GetGetMethod (nonPublic As Boolean) As MethodInfo
Parameters
- nonPublic
- Boolean
true
to return a non-public get
accessor; otherwise, false
.
Returns
A MethodInfo object representing the get
accessor for this property, if the nonPublic
parameter is true
. Or null
if nonPublic
is false
and the get
accessor is non-public, or if nonPublic
is true
but no get
accessors exist.
Remarks
This method is for access to managed classes from unmanaged code and should not be called from managed code.
The GetGetMethod method returns the public or non-public get
accessor for this property.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기