Export (0) Print
Expand All

PropertyBuilder.GetAccessors Method (Boolean)

Returns an array of the public and non-public get and set accessors on this property. This method is not supported.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override MethodInfo[] GetAccessors(
	bool nonPublic
)

Parameters

nonPublic
Type: System.Boolean
true to return non-public methods in the array; otherwise, false.

Return Value

Type: System.Reflection.MethodInfo[]
An array that contains the matching get and set accessors, or an empty array if matching accessors do not exist on this property.

ExceptionCondition
NotSupportedException

This method is not supported.

To get the accessors of a property of a dynamic type before the type is completed, use the GetGetMethod and GetSetMethod methods.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft