HttpParameterDescriptor.GetCustomAttributes<T> Method

Retrieves a collection of the custom attributes from the parameter.

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


Public Overridable Function GetCustomAttributes(Of T As Class) As Collection(Of T)
Dim instance As HttpParameterDescriptor 
Dim returnValue As Collection(Of T)

returnValue = instance.GetCustomAttributes()
public virtual Collection<T> GetCustomAttributes<T>()
where T : class
generic<typename T>
where T : ref class 
virtual Collection<T>^ GetCustomAttributes()
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>
A collection of the custom attributes from the parameter.

See Also


HttpParameterDescriptor Class

System.Web.Http.Controllers Namespace