PropertyBuilder::GetAccessors Method (Boolean)
.NET Framework (current version)
Returns an array of the public and non-public get and set accessors on this property.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- nonPublic
-
Type:
System::Boolean
Indicates whether non-public methods should be returned in the MethodInfo array. true if non-public methods are to be included; otherwise, false.
Return Value
Type: array<System.Reflection::MethodInfo^>^An array of type MethodInfo containing the matching public or non-public accessors, or an empty array if matching accessors do not exist on this property.
Implements
_PropertyInfo::GetAccessors(Boolean)| Exception | Condition |
|---|---|
| NotSupportedException | This method is not supported. |
To get the accessors of a property, reflect on the property's parent type using Type.GetType or Assembly.GetType, retrieve the Reflection property object from the type, and call PropertyInfo.GetAccessors.
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Available since 1.1
Silverlight
Available since 2.0
Show: