ReflectedHttpActionDescriptor.GetCustomAttributes<T> Method

Returns an array of custom attributes defined for this member, identified by type.

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

Syntax

'Declaration
Public Overrides Function GetCustomAttributes(Of T As Class) As Collection(Of T)
'Usage
Dim instance As ReflectedHttpActionDescriptor
Dim returnValue As Collection(Of T)

returnValue = instance.GetCustomAttributes()
public override Collection<T> GetCustomAttributes<T>()
where T : class
public:
generic<typename T>
where T : ref class
virtual Collection<T>^ GetCustomAttributes() override
abstract GetCustomAttributes : unit -> Collection<'T>  when 'T : not struct
override GetCustomAttributes : unit -> Collection<'T>  when 'T : not struct
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the custom attributes.

Return Value

Type: System.Collections.ObjectModel.Collection<T>
An array of custom attributes or an empty array if no custom attributes exist.

See Also

Reference

ReflectedHttpActionDescriptor Class

System.Web.Http.Controllers Namespace