Udostępnij za pośrednictwem


HandleErrorInfo.ControllerName Property

Gets or sets the name of the controller that contains the action method that threw the exception.

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

Syntax

'Declaration
Public Property ControllerName As String
    Get
    Private Set
public string ControllerName { get; private set; }
public:
property String^ ControllerName {
    String^ get ();
    private: void set (String^ value);
}

Property Value

Type: System.String
The name of the controller.

See Also

Reference

HandleErrorInfo Class

System.Web.Mvc Namespace