Share via


PublishedEvent.FieldList.Item Property (String)

Gets a field by name from the fields collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    fieldName As String _
) As PublishedEventField 
    Get
'Usage
Dim instance As PublishedEvent.FieldList 
Dim fieldName As String 
Dim value As PublishedEventField 

value = instance(fieldName)
public PublishedEventField this[
    string fieldName
] { get; }
public:
property PublishedEventField^ default[String^ fieldName] {
    PublishedEventField^ get (String^ fieldName);
}
member Item : PublishedEventField
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • fieldName
    Type: System.String
    The name of the field to retrieve.

Property Value

Type: Microsoft.SqlServer.XEvent.Linq.PublishedEventField
A field by name from the fields collection.

See Also

Reference

PublishedEvent.FieldList Class

Item Overload

Microsoft.SqlServer.XEvent.Linq Namespace