Export (0) Print
Expand All

_PropertyInfo.GetAccessors Method

Provides COM objects with version-independent access to the GetAccessors method.

Namespace:  System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

MethodInfo[] GetAccessors()

Return Value

Type: System.Reflection.MethodInfo[]
An array of MethodInfo objects that reflect the public get, set, and other accessors of the property reflected by the current instance, if accessors are found; otherwise, this method returns an array with zero (0) elements.

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The GetAccessors method returns an array whose elements reflect the public get, set, and other accessors of the property reflected by the current instance.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft