BaseXEStore.SaveSessionToTemplate(Session, String, Boolean) 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.
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.