Share via


EventFieldCollection.Item Property (String)

Gets the EventField object with the specified name.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As EventField 
    Get
'Usage
Dim instance As EventFieldCollection 
Dim name As String 
Dim value As EventField 

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

Parameters

  • name
    Type: System.String
    A string value that contains the name.

Property Value

Type: Microsoft.SqlServer.Management.XEvent.EventField
A EventField object.

See Also

Reference

EventFieldCollection Class

Item Overload

Microsoft.SqlServer.Management.XEvent Namespace