Partager via


Propriété TargetCollection.Item (String)

Gets the Target object with the specified name.

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 Target 
    Get
'Utilisation
Dim instance As TargetCollection 
Dim name As String 
Dim value As Target 

value = instance(name)
public Target this[
    string name
] { get; }
public:
property Target^ default[String^ name] {
    Target^ get (String^ name);
}
member Item : Target
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
    A string value that specifies the name.

Valeur de propriété

Type : Microsoft.SqlServer.Management.XEvent.Target
The Target object with the specified name

Voir aussi

Référence

TargetCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.XEvent