ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
EventSource<T> Class
EventSource<T> Methods
connect Method

# EventSource T connect Method

Connects the host event source to the specified script handler function.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public EventConnection<T> connect(
    	Object scriptFunc
    )

    Public Function connect (
    	scriptFunc As Object
    ) As EventConnection(Of T)

    public:
    EventConnection<T>^ connect(
    	Object^ scriptFunc
    )

    member connect :
            scriptFunc : Object -> EventConnection<'T>

#### Parameters

scriptFunc Object
  The script function that will handle the event.

#### Return Value

EventConnection T
An EventConnectionT that represents the connection.
See Also

#### Reference

EventSourceT Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft