ActionNameAttribute Constructor
Initializes a new instance of the ActionNameAttribute class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
name As String _
)
public ActionNameAttribute(
string name
)
public:
ActionNameAttribute(
String^ name
)
Parameters
- name
Type: System.String
Name of the action.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The name parameter is null reference (Nothing in Visual Basic) or empty. |