Partager via


Propriété EventCollection.Item (String)

Gets the XEvent object identified by the name parameter.

Espace de noms :  Microsoft.SqlServer.Management.XEvent
Assembly :  Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Event 
    Get
'Utilisation
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 prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

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

Valeur de propriété

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

Voir aussi

Référence

EventCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.XEvent