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
参数
- sessionName
类型:System.String
A string value that specifies the name of the Session object.
返回值
类型:Microsoft.SqlServer.Management.XEvent.Session
A Session object.