EventCollection.Item Property (String)
Gets the XEvent object identified by the name parameter.
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 Event
Get
'Usage
Dim instance As EventCollection
Dim name As String
Dim value As Event
value = instance(name)
public Event this[
string name
] { get; }
public:
property Event^ default[String^ name] {
Event^ get (String^ name);
}
member Item : Event
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- name
Type: System.String
The name of the XEvent object to find.
Property Value
Type: Microsoft.SqlServer.Management.XEvent.Event
Returns the XEvent object identified by the name parameter.