共用方式為


Session 建構函式 (XEStore, String)

Initializes a new instance of Session class.

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

語法

'宣告
Public Sub New ( _
    parent As XEStore, _
    name As String _
)
'用途
Dim parent As XEStore 
Dim name As String 

Dim instance As New Session(parent, _
    name)
public Session(
    XEStore parent,
    string name
)
public:
Session(
    XEStore^ parent, 
    String^ name
)
new : 
        parent:XEStore * 
        name:string -> Session
public function Session(
    parent : XEStore, 
    name : String
)

參數

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

請參閱

參考

Session 類別

Session 多載

Microsoft.SqlServer.Management.XEvent 命名空間