EventInfoCollection.Item Property (String)

Gets the EventInfo 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 EventInfo 
    Get
'Usage
Dim instance As EventInfoCollection 
Dim name As String 
Dim value As EventInfo 

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

Parameters

Property Value

Type: Microsoft.SqlServer.Management.XEvent.EventInfo
The EventInfo object specified by the name parameter.

See Also

Reference

EventInfoCollection Class

Item Overload

Microsoft.SqlServer.Management.XEvent Namespace