Partager via


Propriété TargetInfoCollection.Item (String)

Gets the TargetInfo 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 TargetInfo 
    Get
'Utilisation
Dim instance As TargetInfoCollection 
Dim name As String 
Dim value As TargetInfo 

value = instance(name)
public TargetInfo this[
    string name
] { get; }
public:
virtual property TargetInfo^ default[String^ name] {
    TargetInfo^ get (String^ name) sealed;
}
abstract Item : TargetInfo 
override Item : TargetInfo
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.TargetInfo
The TargetInfo object with the specified name.

Voir aussi

Référence

TargetInfoCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.XEvent