Condividi tramite


BaseXEStore.CreateSessionFromTemplate(String, String) Method

Definition

Creates a session from template.

public virtual Microsoft.SqlServer.Management.XEvent.Session CreateSessionFromTemplate (string sessionName, string fileName);
abstract member CreateSessionFromTemplate : string * string -> Microsoft.SqlServer.Management.XEvent.Session
override this.CreateSessionFromTemplate : string * string -> Microsoft.SqlServer.Management.XEvent.Session
Public Overridable Function CreateSessionFromTemplate (sessionName As String, fileName As String) As Session

Parameters

sessionName
String

Name of the session.

fileName
String

Name of the file.

Returns

A new Session.

Exceptions

The template file can't be accessed.

The template file is malformed.

The template file doesn't conform to the schema.

Parameters are wrong or failed to create session.

Applies to