XEStore.CreateSessionFromTemplate 메서드

Creates a Session object from template file specified by the fileName parameter.

네임스페이스:  Microsoft.SqlServer.Management.XEvent
어셈블리:  Microsoft.SqlServer.Management.XEvent(Microsoft.SqlServer.Management.XEvent.dll)

구문

‘선언
Public Function CreateSessionFromTemplate ( _
    sessionName As String, _
    fileName As String _
) As Session
‘사용 방법
Dim instance As XEStore 
Dim sessionName As String 
Dim fileName As String 
Dim returnValue As Session 

returnValue = instance.CreateSessionFromTemplate(sessionName, _
    fileName)
public Session CreateSessionFromTemplate(
    string sessionName,
    string fileName
)
public:
Session^ CreateSessionFromTemplate(
    String^ sessionName, 
    String^ fileName
)
member CreateSessionFromTemplate : 
        sessionName:string * 
        fileName:string -> Session
public function CreateSessionFromTemplate(
    sessionName : String, 
    fileName : String
) : Session

매개 변수

  • fileName
    유형: System.String
    A string value that specifies the name of the file.

반환 값

유형: Microsoft.SqlServer.Management.XEvent.Session
A Session object from template file specified by the fileName parameter.

예외

예외 조건
XEventException

Parameters are wrong, or failed to create session.

XmlException

The template file is malformed.

UnauthorizedAccessException

The template file can't be accessed.

XmlSchemaValidationException

The template file doesn't conform to the schema.

참고 항목

참조

XEStore 클래스

Microsoft.SqlServer.Management.XEvent 네임스페이스