Table of Contents

Class ReflectedHttpParameterDescriptor

Namespace
System.Web.Http.Controllers
Assembly
System.Web.Http.dll

No content here will be updated; please do not add material here.

public class ReflectedHttpParameterDescriptor : HttpParameterDescriptor
Inheritance
ReflectedHttpParameterDescriptor
Inherited Members
Extension Methods

Constructors

ReflectedHttpParameterDescriptor()

Initializes a new instance of the ReflectedHttpParameterDescriptor class.

public ReflectedHttpParameterDescriptor()

ReflectedHttpParameterDescriptor(HttpActionDescriptor, ParameterInfo)

Initializes a new instance of the ReflectedHttpParameterDescriptor class.

public ReflectedHttpParameterDescriptor(HttpActionDescriptor actionDescriptor, ParameterInfo parameterInfo)

Parameters

actionDescriptor HttpActionDescriptor

The action descriptor.

parameterInfo ParameterInfo

The parameter information.

Properties

DefaultValue

Gets the default value for the parameter.

public override object DefaultValue { get; }

Property Value

object

The default value for the parameter.

IsOptional

Gets a value that indicates whether the parameter is optional.

public override bool IsOptional { get; }

Property Value

bool

true if the parameter is optional; otherwise false.

ParameterInfo

Gets or sets the parameter information.

public ParameterInfo ParameterInfo { get; set; }

Property Value

ParameterInfo

The parameter information.

ParameterName

Gets the name of the parameter.

public override string ParameterName { get; }

Property Value

string

The name of the parameter.

ParameterType

Gets the type of the parameter.

public override Type ParameterType { get; }

Property Value

Type

The type of the parameter.

Methods

GetCustomAttributes<T>()

Retrieves a collection of the custom attributes from the parameter.

public override Collection<T> GetCustomAttributes<T>() where T : class

Returns

Collection<T>

A collection of the custom attributes from the parameter.

Type Parameters

T

The type of the custom attributes.