Export (0) Print
Expand All

ControllerDescriptor Class

.NET Framework 4

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)

'Declaration
Public MustInherit Class ControllerDescriptor _
	Implements ICustomAttributeProvider

The ControllerDescriptor type exposes the following members.

  NameDescription
Protected methodControllerDescriptorInitializes a new instance of the ControllerDescriptor class.
Top

  NameDescription
Public propertyControllerNameGets the name of the controller.
Public propertyControllerTypeGets the type of the controller.
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindActionFinds an action method by using the specified name and controller context.
Public methodGetCanonicalActionsRetrieves a list of action-method descriptors in the controller.
Public methodGetCustomAttributes(Boolean)Retrieves custom attributes that are defined for this member, excluding named attributes.
Public methodGetCustomAttributes(Type, Boolean)Retrieves custom attributes of a specified type that are defined for this member, excluding named attributes.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsDefinedRetrieves a value that indicates whether one or more instance of the specified custom attribute are defined for this member.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

Community Additions

ADD
Show:
© 2014 Microsoft