ControllerDescriptor Class

 

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

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ControllerDescriptor
    System.Web.Mvc.Async.ReflectedAsyncControllerDescriptor
    System.Web.Mvc.ReflectedControllerDescriptor

Syntax

public abstract class ControllerDescriptor : ICustomAttributeProvider
public ref class ControllerDescriptor abstract : ICustomAttributeProvider
[<AbstractClass>]
type ControllerDescriptor = 
    class
        interface ICustomAttributeProvider
    end
Public MustInherit Class ControllerDescriptor
    Implements ICustomAttributeProvider

Constructors

Name Description
System_CAPS_protmethod ControllerDescriptor()

Initializes a new instance of the ControllerDescriptor class.

Properties

Name Description
System_CAPS_pubproperty ControllerName

Gets the name of the controller.

System_CAPS_pubproperty ControllerType

Gets the type of the controller.

System_CAPS_pubproperty UniqueId

When implemented in a derived class, gets the unique ID for the controller descriptor using lazy initialization.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod FindAction(ControllerContext, String)

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

System_CAPS_pubmethod GetCanonicalActions()

Retrieves a list of action-method descriptors in the controller.

System_CAPS_pubmethod GetCustomAttributes(Boolean)

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

System_CAPS_pubmethod GetCustomAttributes(Type, Boolean)

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

System_CAPS_pubmethod GetFilterAttributes(Boolean)

Gets the filter attributes.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefined(Type, Boolean)

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

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top