Compartilhar via


Método XEStore.SaveSessionToTemplate

Saves the session to template.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)

Sintaxe

'Declaração
Public Shared Sub SaveSessionToTemplate ( _
    session As Session, _
    fileName As String, _
    overwrite As Boolean _
)
'Uso
Dim session As Session 
Dim fileName As String 
Dim overwrite As Boolean 

XEStore.SaveSessionToTemplate(session, _
    fileName, overwrite)
public static void SaveSessionToTemplate(
    Session session,
    string fileName,
    bool overwrite
)
public:
static void SaveSessionToTemplate(
    Session^ session, 
    String^ fileName, 
    bool overwrite
)
static member SaveSessionToTemplate : 
        session:Session * 
        fileName:string * 
        overwrite:bool -> unit
public static function SaveSessionToTemplate(
    session : Session, 
    fileName : String, 
    overwrite : boolean
)

Parâmetros

  • fileName
    Tipo: System.String
    A string value that specifies the name of the file.
  • overwrite
    Tipo: System.Boolean
    Boolean value; if True, overwrite file.

Exceções

Exceção Condição
IOException

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

XEventException

Parameters are wrong or failed to save session.

Consulte também

Referência

XEStore Classe

Namespace Microsoft.SqlServer.Management.XEvent