ReflectedAsyncControllerDescriptor.GetCustomAttributes Method

Definition

Overloads

GetCustomAttributes(Boolean)

Returns custom attributes that are defined for this member, excluding named attributes.

GetCustomAttributes(Type, Boolean)

Returns custom attributes of a specified type that are defined for this member, excluding named attributes.

GetCustomAttributes(Boolean)

Returns custom attributes that are 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

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.

Applies to

GetCustomAttributes(Type, Boolean)

Returns custom attributes of a specified type that are defined for this member, excluding named attributes.

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

The type of the custom attributes.

inherit
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.

Applies to