Freigeben über


PublishedEvent.FieldList.Item-Eigenschaft (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 unterstützt die Verwendung indizierter Eigenschaften, aber nicht die Deklaration neuer Eigenschaften.

Parameter

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

Eigenschaftswert

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

Siehe auch

Verweis

PublishedEvent.FieldList Klasse

Item-Überladung

Microsoft.SqlServer.XEvent.Linq-Namespace