Share via


PublishedEvent.FieldList.Item[] Property

Definition

Gets a field from the fields collection.

Overloads

Item[Int32]

Gets a field by ordinal from the fields collection.

Item[String]

Gets a field by name from the fields collection.

Item[Int32]

Gets a field by ordinal from the fields collection.

public:
 property Microsoft::SqlServer::XEvent::Linq::PublishedEventField ^ default[int] { Microsoft::SqlServer::XEvent::Linq::PublishedEventField ^ get(int fieldIndex); };
public Microsoft.SqlServer.XEvent.Linq.PublishedEventField this[int fieldIndex] { get; }
member this.Item(int) : Microsoft.SqlServer.XEvent.Linq.PublishedEventField
Default Public ReadOnly Property Item(fieldIndex As Integer) As PublishedEventField

Parameters

fieldIndex
Int32

The field index.

Property Value

A field by ordinal from the fields collection.

Applies to

Item[String]

Gets a field by name from the fields collection.

public:
 property Microsoft::SqlServer::XEvent::Linq::PublishedEventField ^ default[System::String ^] { Microsoft::SqlServer::XEvent::Linq::PublishedEventField ^ get(System::String ^ fieldName); };
public Microsoft.SqlServer.XEvent.Linq.PublishedEventField this[string fieldName] { get; }
member this.Item(string) : Microsoft.SqlServer.XEvent.Linq.PublishedEventField
Default Public ReadOnly Property Item(fieldName As String) As PublishedEventField

Parameters

fieldName
String

The name of the field to retrieve.

Property Value

A field by name from the fields collection.

Applies to