Mono Class Library: System.Reflection.PropertyInfo Overview | Members

System.Reflection.PropertyInfo.GetAccessors Method

Returns an array whose elements reflect the public and, if specified, non-public Get, Set, and other accessors of the property reflected by the current instance. [Edit]

public abstract MethodInfo[] GetAccessors (bool nonPublic)

Parameters

nonPublic
A bool value that indicates whether non-public accessors will be included in the return value. Specify true to include the non-public accessors; otherwise, specify false . [Edit]

Returns

An array of System.Reflection.MethodInfo objects whose elements reflect the Get, Set, and other accessors of the property reflected by the current instance. If nonPublic is true, this array contains public and non-public accessors. If nonPublic is false, this array contains only public accessors. If no accessors with the specified visibility are found, returns an array with zero elements. [Edit]

Permissions

TypeReason
System.Security.Permissions.ReflectionPermission [Edit] Requires permission to reflect non-public members of a type in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation.

Remarks

Operation
As described above. [Edit]

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0