다음을 통해 공유


TraceEventCollection.Item[] Property

Definition

Overloads

Item[TraceEventClass]

Gets the TraceEvent with the specified EventID.

Item[Int32]

Gets the TraceEvent element at the specified index.

Item[TraceEventClass]

Gets the TraceEvent with the specified EventID.

public Microsoft.AnalysisServices.TraceEvent this[Microsoft.AnalysisServices.TraceEventClass eventId] { get; }
member this.Item(Microsoft.AnalysisServices.TraceEventClass) : Microsoft.AnalysisServices.TraceEvent
Default Public ReadOnly Property Item(eventId As TraceEventClass) As TraceEvent

Parameters

eventId
TraceEventClass

The EventId of the element to get.

Property Value

The TraceEvent element with the specified EventID.

Exceptions

An element with the specified EventID does not exists in the collection.

Applies to

Item[Int32]

Gets the TraceEvent element at the specified index.

public Microsoft.AnalysisServices.TraceEvent this[int index] { get; }
member this.Item(int) : Microsoft.AnalysisServices.TraceEvent
Default Public ReadOnly Property Item(index As Integer) As TraceEvent

Parameters

index
Int32

The zero-based index of the element to get.

Property Value

The TraceEvent element at the specified index.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

Applies to