JSField.GetCustomAttributes Method (Type, Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 field, searching only for attributes of the specified type.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public override object[] GetCustomAttributes(
	Type t,
	bool inherit


Type: System.Type

The type of attribute to search for.

Type: System.Boolean

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

Return Value

Type: System.Object[]

An array of FieldInfo objects that has zero elements.

.NET Framework
Available since 1.1
Return to top