Redigera

Dela via


_PropertyInfo.GetGetMethod Method

Definition

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