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.
HttpActionDescriptor::GetCustomAttributes Method
Namespace:
System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | GetCustomAttributes<T>() | Returns the custom attributes associated with the action descriptor. |
![]() | GetCustomAttributes<T>(Boolean) | Gets the custom attributes for the action. |
HttpActionDescriptor::GetCustomAttributes<T> Method ()
Returns the custom attributes associated with the action descriptor.
HttpActionDescriptor::GetCustomAttributes<T> Method (Boolean)
Gets the custom attributes for the action.
public: generic<typename T> where T : ref class virtual Collection<T>^ GetCustomAttributes( bool inherit )
Parameters
- inherit
-
Type:
System::Boolean
true to search this action's inheritance chain to find the attributes; otherwise, false.
Return Value
Type: System.Collections.ObjectModel::Collection<T>^The collection of custom attributes applied to this action.
Type Parameters
- T
The type of attribute to search for.
Show:
