共用方式為


IPackage.Events 屬性

Gets the metadata collection describing all the events exposed by this package that may present in the session.

命名空間:  Microsoft.SqlServer.XEvent
組件:  Microsoft.SqlServer.XEvent.Linq (在 Microsoft.SqlServer.XEvent.Linq.dll 中)

語法

'宣告
ReadOnly Property Events As ReadOnlyCollection(Of IEventMetadata)
    Get
'用途
Dim instance As IPackage 
Dim value As ReadOnlyCollection(Of IEventMetadata)

value = instance.Events
ReadOnlyCollection<IEventMetadata> Events { get; }
property ReadOnlyCollection<IEventMetadata^>^ Events {
    ReadOnlyCollection<IEventMetadata^>^ get ();
}
abstract Events : ReadOnlyCollection<IEventMetadata>
function get Events () : ReadOnlyCollection<IEventMetadata>

屬性值

型別:System.Collections.ObjectModel.ReadOnlyCollection<IEventMetadata>
The metadata collection describing all the events exposed by this package that may present in the session.

請參閱

參考

IPackage 介面

Microsoft.SqlServer.XEvent 命名空間