Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetMethod Property

PropertyInfo.SetMethod Property

.NET Framework 4.6 and 4.5

Gets the set accessor for this property.

Namespace:  System.Reflection
Assemblies:   System.Reflection (in System.Reflection.dll)
  mscorlib (in mscorlib.dll)

public virtual MethodInfo SetMethod { get; }

Property Value

Type: System.Reflection.MethodInfo
The set accessor for this property, or null if the property is read-only.

Retrieving the value of the SetMethod property is equivalent to calling the GetSetMethod(Boolean) method with a value of true for the nonPublic argument.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft