Freigeben über


XEStore.CreateSession-Methode

Represents a wrapper for Session constructor that is used to avoid accidentally passing the wrong parent.

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

Syntax

'Declaration
Public Function CreateSession ( _
    sessionName As String _
) As Session
'Usage
Dim instance As XEStore 
Dim sessionName As String 
Dim returnValue As Session 

returnValue = instance.CreateSession(sessionName)
public Session CreateSession(
    string sessionName
)
public:
Session^ CreateSession(
    String^ sessionName
)
member CreateSession : 
        sessionName:string -> Session
public function CreateSession(
    sessionName : String
) : Session

Parameter

Rückgabewert

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

Siehe auch

Verweis

XEStore Klasse

Microsoft.SqlServer.Management.XEvent-Namespace