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)
| Name | Description | |
|---|---|---|
![]() | GetCustomAttributes<T>() | Retrieves a collection of custom attributes of the controller. |
![]() | GetCustomAttributes<T>(Boolean) | Returns a collection of attributes that can be assigned to <typeparamref name="T" /> for this descriptor's controller. |
HttpControllerDescriptor::GetCustomAttributes<T> Method ()
Retrieves a collection of custom attributes of the controller.
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.
Show:
