Returns the public get-accessor for this property.
[Visual Basic] Overloads Public Function GetGetMethod() As MethodInfo [C#] public MethodInfo GetGetMethod(); [C++] public: MethodInfo* GetGetMethod(); [JScript] public function GetGetMethod() : MethodInfo;
Value | Condition |
---|---|
A MethodInfo object representing the Get accessor for this property. | The Get accessor is public. |
null | The Get accessor is non-public or does not exist. |
This method is a convenience method that calls the following GetGetMethod method with a parameter of false. Note that the following method is abstract and must be implemented before this method is functional.
To use the GetGetMethod method, first get the class Type. From the Type, get the PropertyInfo. From the PropertyInfo, use the GetGetMethod method.
PropertyInfo Class | PropertyInfo Members | System.Reflection Namespace | PropertyInfo.GetGetMethod Overload List