XEStore.SaveSessionToTemplate 메서드
Saves the session to template.
네임스페이스: Microsoft.SqlServer.Management.XEvent
어셈블리: Microsoft.SqlServer.Management.XEvent(Microsoft.SqlServer.Management.XEvent.dll)
구문
‘선언
Public Shared Sub SaveSessionToTemplate ( _
session As Session, _
fileName As String, _
overwrite As Boolean _
)
‘사용 방법
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
)
매개 변수
- session
유형: Microsoft.SqlServer.Management.XEvent.Session
The Session object.
- fileName
유형: System.String
A string value that specifies the name of the file.
- overwrite
유형: System.Boolean
Boolean value; if True, overwrite file.
예외
예외 | 조건 |
---|---|
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. |