Table of Contents

Class ReflectedAsyncControllerDescriptor

Namespace
System.Web.Mvc.Async
Assembly
System.Web.Mvc.dll

Encapsulates information that describes an asynchronous controller, such as its name, type, and actions.

public class ReflectedAsyncControllerDescriptor : ControllerDescriptor, ICustomAttributeProvider
Inheritance
ReflectedAsyncControllerDescriptor
Implements
Inherited Members

Constructors

ReflectedAsyncControllerDescriptor(Type)

Initializes a new instance of the ReflectedAsyncControllerDescriptor class.

public ReflectedAsyncControllerDescriptor(Type controllerType)

Parameters

controllerType Type

The type of the controller.

Properties

ControllerType

Gets the type of the controller.

public override sealed Type ControllerType { get; }

Property Value

Type

The type of the controller.

Methods

FindAction(ControllerContext, string)

Finds an action method by using the specified name and controller context.

public override ActionDescriptor FindAction(ControllerContext controllerContext, string actionName)

Parameters

controllerContext ControllerContext

The controller context.

actionName string

The name of the action.

Returns

ActionDescriptor

The information about the action method.

GetCanonicalActions()

Returns a list of action method descriptors in the controller.

public override ActionDescriptor[] GetCanonicalActions()

Returns

ActionDescriptor[]

A list of action method descriptors in the controller.

GetCustomAttributes(bool)

Returns custom attributes that are defined for this member, excluding named attributes.

public override object[] GetCustomAttributes(bool inherit)

Parameters

inherit bool

true to look up the hierarchy chain for the inherited custom attribute; otherwise, false.

Returns

object[]

An array of custom attributes, or an empty array if no custom attributes exist.

GetCustomAttributes(Type, bool)

Returns custom attributes of a specified type that are defined for this member, excluding named attributes.

public override object[] GetCustomAttributes(Type attributeType, bool inherit)

Parameters

attributeType Type

The type of the custom attributes.

inherit bool

true to look up the hierarchy chain for the inherited custom attribute; otherwise, false.

Returns

object[]

An array of custom attributes, or an empty array if no custom attributes exist.

GetFilterAttributes(bool)

Gets the filter attributes.

public override IEnumerable<FilterAttribute> GetFilterAttributes(bool useCache)

Parameters

useCache bool

true to use the cache, otherwise false.

Returns

IEnumerable<FilterAttribute>

The filter attributes.

IsDefined(Type, bool)

Returns a value that indicates whether one or more instances of the specified custom attribute are defined for this member.

public override bool IsDefined(Type attributeType, bool inherit)

Parameters

attributeType Type

The type of the custom attribute.

inherit bool

true to look up the hierarchy chain for the inherited custom attribute; otherwise, false.

Returns

bool

true if an attribute of the type represented by attributeType is defined for this member; otherwise, false.