Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpControllerDescriptor::GetCustomAttributes Method

 

Namespace:   System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

NameDescription
System_CAPS_pubmethodGetCustomAttributes<T>()

Retrieves a collection of custom attributes of the controller.

System_CAPS_pubmethodGetCustomAttributes<T>(Boolean)

Returns a collection of attributes that can be assigned to <typeparamref name="T" /> for this descriptor's controller.

Return to top

HttpControllerDescriptor::GetCustomAttributes<T> Method ()

Retrieves a collection of custom attributes of the controller.

public:
generic<typename T>
where T : ref class
virtual Collection<T>^ GetCustomAttributes()

Return Value

Type: System.Collections.ObjectModel::Collection<T>^

A collection of custom attributes.

Type Parameters

T

The type of the object.

Return to top

HttpControllerDescriptor::GetCustomAttributes<T> Method (Boolean)

Returns a collection of attributes that can be assigned to <typeparamref name="T" /> for this descriptor's controller.

public:
generic<typename T>
where T : ref class
virtual Collection<T>^ GetCustomAttributes(
	bool inherit
)

Parameters

inherit
Type: System::Boolean

true to search this controller's inheritance chain to find the attributes; otherwise, false.

Return Value

Type: System.Collections.ObjectModel::Collection<T>^

A collection of attributes associated with this controller.

Type Parameters

T

Used to filter the collection of attributes. Use a value of Object to retrieve all attributes.

Return to top
Show: