ReflectedActionDescriptor.GetCustomAttributes ReflectedActionDescriptor.GetCustomAttributes ReflectedActionDescriptor.GetCustomAttributes Method

Definition

Overloads

GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean)

Returns an array of custom attributes defined for this member, excluding named attributes.

GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean)

Returns an array of custom attributes defined for this member, identified by type.

GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean)

Returns an array of custom attributes defined for this member, excluding named attributes.

public override object[] GetCustomAttributes (bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides Function GetCustomAttributes (inherit As Boolean) As Object()

Parameters

inherit
Boolean Boolean Boolean

true to look up the hierarchy chain for the inherited custom attribute; otherwise, false.

Returns

Object[]

An array of custom attributes, or an empty array if no custom attributes exist.

Exceptions

The custom attribute type cannot be loaded.

There is more than one attribute of type attributeType defined for this member.

GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean)

Returns an array of custom attributes defined for this member, identified by type.

public override object[] GetCustomAttributes (Type attributeType, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()

Parameters

attributeType
Type Type Type

The type of the custom attributes.

inherit
Boolean Boolean Boolean

true to look up the hierarchy chain for the inherited custom attribute; otherwise, false.

Returns

Object[]

An array of custom attributes, or an empty array if no custom attributes exist.

Exceptions

The custom attribute type cannot be loaded.

There is more than one attribute of type attributeType defined for this member.

Applies to