Rediger

Del via


WebPartVerb Constructors

Definition

Initializes a new instance of the WebPartVerb class.

Overloads

WebPartVerb(String, String)

Initializes a new instance of the WebPartVerb class and associates a client-side click event handler with the instance.

WebPartVerb(String, WebPartEventHandler)

Initializes a new instance of the WebPartVerb class and associates a server-side click event handler with the instance.

WebPartVerb(String, WebPartEventHandler, String)

Initializes a new instance of the WebPartVerb class and associates both client and server-side click event handlers with the instance.

Remarks

The WebPartVerb constructor creates a new instance of the WebPartVerb class by passing in one of three possible parameters: a reference to a server-side click event handler with an ID string, a reference to a client-side click event handler with an ID string, or references to both types of click event handlers.

WebPartVerb(String, String)

Initializes a new instance of the WebPartVerb class and associates a client-side click event handler with the instance.

public:
 WebPartVerb(System::String ^ id, System::String ^ clientClickHandler);
public WebPartVerb (string id, string clientClickHandler);
new System.Web.UI.WebControls.WebParts.WebPartVerb : string * string -> System.Web.UI.WebControls.WebParts.WebPartVerb
Public Sub New (id As String, clientClickHandler As String)

Parameters

id
String

A String that is the unique identifier for a verb.

clientClickHandler
String

A String that refers to the client-side handler for click events.

Exceptions

The clientClickHandler parameter is null.

Remarks

This class constructor refers to a client-side event handler to call when the user clicks a verb in the user interface (UI).

See also

Applies to

WebPartVerb(String, WebPartEventHandler)

Initializes a new instance of the WebPartVerb class and associates a server-side click event handler with the instance.

public:
 WebPartVerb(System::String ^ id, System::Web::UI::WebControls::WebParts::WebPartEventHandler ^ serverClickHandler);
public WebPartVerb (string id, System.Web.UI.WebControls.WebParts.WebPartEventHandler serverClickHandler);
new System.Web.UI.WebControls.WebParts.WebPartVerb : string * System.Web.UI.WebControls.WebParts.WebPartEventHandler -> System.Web.UI.WebControls.WebParts.WebPartVerb
Public Sub New (id As String, serverClickHandler As WebPartEventHandler)

Parameters

id
String

A String that is the unique identifier for a verb.

serverClickHandler
WebPartEventHandler

A WebPartEventHandler that handles click events on the server.

Exceptions

The serverClickHandler parameter is null.

Remarks

This class constructor refers to a server-side click event handler to call when the user clicks a verb in the user interface (UI).

See also

Applies to

WebPartVerb(String, WebPartEventHandler, String)

Initializes a new instance of the WebPartVerb class and associates both client and server-side click event handlers with the instance.

public:
 WebPartVerb(System::String ^ id, System::Web::UI::WebControls::WebParts::WebPartEventHandler ^ serverClickHandler, System::String ^ clientClickHandler);
public WebPartVerb (string id, System.Web.UI.WebControls.WebParts.WebPartEventHandler serverClickHandler, string clientClickHandler);
new System.Web.UI.WebControls.WebParts.WebPartVerb : string * System.Web.UI.WebControls.WebParts.WebPartEventHandler * string -> System.Web.UI.WebControls.WebParts.WebPartVerb
Public Sub New (id As String, serverClickHandler As WebPartEventHandler, clientClickHandler As String)

Parameters

id
String

A String that is the unique identifier for a verb.

serverClickHandler
WebPartEventHandler

A WebPartEventHandler that handles click events on the server.

clientClickHandler
String

A String that refers to the client-side handler for click events.

Exceptions

The clientClickHandler parameter is null.

-or-

The serverClickHandler parameter is null.

Remarks

This class constructor refers to both client-side and server-side click event handlers to call when the user clicks a verb in the user interface (UI).

See also

Applies to