Proprietà SessionCollection.Item (String)
Gets the Session object with the specified name.
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 Session
Get
'Utilizzo
Dim instance As SessionCollection
Dim name As String
Dim value As Session
value = instance(name)
public Session this[
string name
] { get; }
public:
property Session^ default[String^ name] {
Session^ get (String^ name);
}
member Item : Session
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.
Parametri
- name
Tipo: System.String
A string value that specifies the name.
Valore proprietà
Tipo: Microsoft.SqlServer.Management.XEvent.Session
A Session object.