EventSourceconnect Method |
Connects the host event source to the specified script handler function.
Namespace:
Microsoft.ClearScript
Assembly:
ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.5
Syntaxpublic EventConnection connect(
Object scriptFunc
)
Public Function connect (
scriptFunc As Object
) As EventConnection
public:
EventConnection^ connect(
Object^ scriptFunc
)
member connect :
scriptFunc : Object -> EventConnection
Parameters
- scriptFunc
- Type: SystemObject
The script function that will handle the event.
Return Value
Type:
EventConnectionAn
EventConnection that represents the connection.
See Also