BaseXEStore.CreateSessionFromTemplate(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.