Proprietà EventCollection.Item (String)

Gets the XEvent object identified by the name parameter.

Spazio dei nomi  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Sintassi

'Dichiarazione
Public ReadOnly Default Property Item ( _
    name As String _
) As Event 
    Get
'Utilizzo
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 supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.

Parametri

  • name
    Tipo: System.String
    The name of the XEvent object to find.

Valore proprietà

Tipo: Microsoft.SqlServer.Management.XEvent.Event
Returns the XEvent object identified by the name parameter.

Vedere anche

Riferimento

EventCollection Classe

Overload Item

Spazio dei nomi Microsoft.SqlServer.Management.XEvent