Method GetSetMethod
- Namespace
- Microsoft.Samples.Debugging.CorMetadata
- Assembly
- corapi.dll
GetSetMethod(bool)
When overridden in a derived class, returns the set accessor for this property.
public override MethodInfo GetSetMethod(bool nonPublic)
Parameters
nonPublic
boolIndicates whether the accessor should be returned if it is non-public. true if a non-public accessor is to be returned; otherwise, false.
Returns
- MethodInfo
This property's Set method, or null, as shown in the following table.Value Condition The Set method for this property. The set accessor is public.-or-
nonPublic
is true and the set accessor is non-public. nullnonPublic
is true, but the property is read-only.-or-nonPublic
is false and the set accessor is non-public.-or- There is no set accessor.
Exceptions
- SecurityException
The requested method is non-public and the caller does not have ReflectionPermission to reflect on this non-public method.