Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

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