System.Reflection.PropertyInfo.GetSetMethod Method

Returns the public set accessor for this property.

Syntax

public MethodInfo GetSetMethod ()

Returns

The MethodInfo object representing the Set method for this property if the set accessor is public, or null if the set accessor is not public.

Remarks

This is a convenience method that provides an implementation for the abstract GetSetMethod method with the nonPublic parameter set to false.

To use the GetSetMethod method, first get the class Type. From the Type, get the System.Reflection.PropertyInfo. From the PropertyInfo, use the GetSetMethod method.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0