Méthode XEStore.CreateSession
Represents a wrapper for Session constructor that is used to avoid accidentally passing the wrong parent.
Espace de noms : Microsoft.SqlServer.Management.XEvent
Assembly : Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Syntaxe
'Déclaration
Public Function CreateSession ( _
sessionName As String _
) As Session
'Utilisation
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
Paramètres
- sessionName
Type : System.String
A string value that specifies the name of the Session object.
Valeur de retour
Type : Microsoft.SqlServer.Management.XEvent.Session
A Session object.