共用方式為


XEStore.CreateSession 方法

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

命名空間:  Microsoft.SqlServer.Management.XEvent
組件:  Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)

語法

'宣告
Public Function CreateSession ( _
    sessionName As String _
) As Session
'用途
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

參數

傳回值

型別:Microsoft.SqlServer.Management.XEvent.Session
A Session object.

請參閱

參考

XEStore 類別

Microsoft.SqlServer.Management.XEvent 命名空間