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.

C#
public WebPartVerb(string id, string clientClickHandler);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WebPartVerb(String, WebPartEventHandler)

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

C#
public WebPartVerb(string id, System.Web.UI.WebControls.WebParts.WebPartEventHandler serverClickHandler);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public WebPartVerb(string id, System.Web.UI.WebControls.WebParts.WebPartEventHandler serverClickHandler, string clientClickHandler);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1