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.

HttpActionDescriptor::GetCustomAttributes Method

 

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

NameDescription
System_CAPS_pubmethodGetCustomAttributes<T>()

Returns the custom attributes associated with the action descriptor.

System_CAPS_pubmethodGetCustomAttributes<T>(Boolean)

Gets the custom attributes for the action.

Return to top

HttpActionDescriptor::GetCustomAttributes<T> Method ()

Returns the custom attributes associated with the action descriptor.

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

Return Value

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

The custom attributes associated with the action descriptor.

Type Parameters

T

The action descriptor.

Return to top

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.

Return to top
Show: