Dela via


IEventProvider<T> Interface

Defines methods to enumerate, retrieve and locate published event data.

Namespace:  Microsoft.SqlServer.XEvent.Linq
Assembly:  Microsoft.SqlServer.XEvent.Linq (in Microsoft.SqlServer.XEvent.Linq.dll)

Syntax

'Declaration
Public Interface IEventProvider(Of T As PublishedEvent) _
    Inherits IEnumerable(Of T), IEnumerable, IQueryProvider,  _
    IDisposable
'Usage
Dim instance As IEventProvider(Of T)
public interface IEventProvider<T> : IEnumerable<T>, 
    IEnumerable, IQueryProvider, IDisposable 
where T : PublishedEvent
generic<typename T>
where T : PublishedEvent 
public interface class IEventProvider : IEnumerable<T>, 
    IEnumerable, IQueryProvider, IDisposable
type IEventProvider<'T when 'T : PublishedEvent> =  
    interface 
        interface IEnumerable<'T>
        interface IEnumerable 
        interface IQueryProvider 
        interface IDisposable 
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The PublishedEvent.

The IEventProvider<T> type exposes the following members.

Properties

  Name Description
Public property MetadataGenerations Gets a collection of all event metadata used by the IEventProvider.

Top

Methods

  Name Description
Public method CreateQuery (Inherited from IQueryProvider.)
Public method Dispose (Inherited from IDisposable.)
Public method Execute (Inherited from IQueryProvider.)
Public method GetEnumerator (Inherited from IEnumerable<T>.)
Public method RetrieveEvent Gets an event at the specified event location without changing the point of enumeration.
Public method SerializeEvent Serializes an event into the provided serialization context.
Public method Stop Stops consumption of event data for event providers that obtain event data from streaming sources.

Top

See Also

Reference

Microsoft.SqlServer.XEvent.Linq Namespace