Share via


SessionCollection.Item Property (String)

Gets the Session object with the specified name.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Session 
    Get
'Usage
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 supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • name
    Type: System.String
    A string value that specifies the name.

Property Value

Type: Microsoft.SqlServer.Management.XEvent.Session
A Session object.

See Also

Reference

SessionCollection Class

Item Overload

Microsoft.SqlServer.Management.XEvent Namespace