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

# EventSource T Class

Represents a host event source.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScriptEventSource
Microsoft.ClearScriptEventSourceT
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public sealed class EventSource<T> : EventSource

    Public NotInheritable Class EventSource(Of T)
    	Inherits EventSource

    generic<typename T>
    public ref class EventSource sealed : public EventSource

    [<SealedAttribute>]
    type EventSource<'T> =
        class
            inherit EventSource
        end

#### Type Parameters

T
  The event handler delegate type.

The EventSourceT type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| connect | Connects the host event source to the specified script handler function.
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| ToString | Returns a string that represents the current object. (Inherited from Object)

Top
See Also

#### Reference

Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft