ScriptComponentDescriptor.AddEvent(String, String) Method

Definition

Adds the specified event and handler.

C#
public void AddEvent (string name, string handler);

Parameters

name
String

The name of the event.

handler
String

The name of the handler function for the specified event.

Exceptions

name or handler is null or an empty string ("").

Remarks

This method adds the event and handler to the internal dictionary of events that are converted to client script by the GetScript method.

Applies to

Өнім Нұсқалар
.NET Framework 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