Name

CommandEventArgs

Synopsis

This class is used by the CommandEventHandler to provide extra information to a Command event handler. This information is stored in two properties: CommandName and CommandArgument, which are both strings. These properties are used only by your code, and can thus be used to store any information you need. For example, you might set CommandName to “Sort” and CommandArgument to “Ascending.”

Public Class CommandEventArgs : Inherits EventArgs
' Public Constructors
   Public Sub New(ByVal e As CommandEventArgs) 
   Public Sub New(ByVal commandName As String, 
        ByVal argument As Object) 
' Public Instance Properties
   Public ReadOnly Property CommandArgument As Object  
   Public ReadOnly Property CommandName As String  
End Class

Hierarchy

System.ObjectSystem.EventArgs CommandEventArgs

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.