Returns the public set accessor for this property.
[Visual Basic] Overloads Public Function GetSetMethod() As MethodInfo [C#] public MethodInfo GetSetMethod(); [C++] public: MethodInfo* GetSetMethod(); [JScript] public function GetSetMethod() : MethodInfo;
Value | Condition |
---|---|
The MethodInfo object representing the Set method for this property. | The set accessor is public. |
null | The set accessor is non-public. The property is read-only. |
This method is a convenience method that calls the following GetSetMethod 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 GetSetMethod method, first get the class Type. From the Type, get the PropertyInfo. From the PropertyInfo, use the GetSetMethod method.
PropertyInfo Class | PropertyInfo Members | System.Reflection Namespace | PropertyInfo.GetSetMethod Overload List