Returns the public possibly or, if specified, the non-public Set accessor
for the property reflected by the current instance.
[Edit]
Parameters
- nonPublic
- A bool value that indicates whether a non-public Set accessor will be returned. Specify true to allow a non-public accessor; otherwise, specify false.
[Edit]
Returns
If nonPublic is true, returns a System.Reflection.MethodInfo
instance that reflects the Set accessor
for the property reflected by the current instance if that accessor exists. If
nonPublic is false and the Set accessor is non-public, or nonPublic
is true
but no Set accessor exists for the property
reflected by the current instance, returns null .
[Edit]
Permissions
Exceptions
Remarks
Requirements
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0