Share via


BaseXEStore.SaveSessionToTemplate(Session, String, Boolean) Method

Definition

Saves the session to template.

public static void SaveSessionToTemplate (Microsoft.SqlServer.Management.XEvent.Session session, string fileName, bool overwrite);
static member SaveSessionToTemplate : Microsoft.SqlServer.Management.XEvent.Session * string * bool -> unit
Public Shared Sub SaveSessionToTemplate (session As Session, fileName As String, overwrite As Boolean)

Parameters

session
Session

The session.

fileName
String

Name of the file.

overwrite
Boolean

if set to true [overwrite].

Exceptions

The fileName includes an incorrect or invalid syntax for file name, directory name, or volume label syntax.

Parameters are wrong or failed to save session.

Applies to