Table of Contents

Class ReflectedHttpParameterDescriptor

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

Represents the reflected HTTP parameter descriptor.

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<TAttribute>()

Retrieves a collection of the custom attributes from the parameter.

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

Returns

Collection<TAttribute>

A collection of the custom attributes from the parameter.

Type Parameters

TAttribute

The type of the custom attributes.