Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CommandEventArgs Constructor (CommandEventArgs^)

 

Initializes a new instance of the CommandEventArgs class with another CommandEventArgs object.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
CommandEventArgs(
	CommandEventArgs^ e
)

Parameters

e
Type: System.Web.UI.WebControls::CommandEventArgs^

A CommandEventArgs that contains the event data.

Use this constructor to create and initialize a new instance of the CommandEventArgs class using the specified CommandEventArgs object.

When an instance of CommandEventArgs is created by a call to this constructor, the following properties are initialized to the specified values.

Property

Initial Value

CommandName

The e.CommandName parameter.

CommandArgument

The e.CommandArgument parameter.

The following example demonstrates how to create and initialize a new instance of the CommandEventArgs class using the specified CommandEventArgs object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft