ScriptComponentDescriptor.AddEvent(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified event and handler.
public:
void AddEvent(System::String ^ name, System::String ^ handler);
public void AddEvent (string name, string handler);
member this.AddEvent : string * string -> unit
Public Sub AddEvent (name As String, handler As String)
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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.