Edit

Share via


JSMethodInfo.GetCustomAttributes Method

Definition

Returns an array that contains the custom attributes that are attached to this method.

Overloads

GetCustomAttributes(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns an array that contains the custom attributes that are attached to this method.

GetCustomAttributes(Type, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns an array that contains the custom attributes that are attached to this method, searching only for attributes of the specified type.

GetCustomAttributes(Boolean)

Returns an array that contains the custom attributes that are attached to this method.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override sealed object[] GetCustomAttributes (bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides NotOverridable Function GetCustomAttributes (inherit As Boolean) As Object()

Parameters

inherit
Boolean

true to search this member's inheritance hierarchy to find the attributes.

Returns

Object[]

An array that contains the custom attributes that are attached to this method, or, if there are none, an array that has zero elements.

See also

Applies to

GetCustomAttributes(Type, Boolean)

Returns an array that contains the custom attributes that are attached to this method, searching only for attributes of the specified type.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ type, bool inherit);
public override sealed object[] GetCustomAttributes (Type type, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides NotOverridable Function GetCustomAttributes (type As Type, inherit As Boolean) As Object()

Parameters

type
Type

The type of attribute to search for.

inherit
Boolean

true to search this member's inheritance hierarchy to find the attributes.

Returns

Object[]

An array that contains the custom attributes that are attached to this method, or, if there are none, an array that has zero elements.

See also

Applies to