XEStore.ObjectMetadata.Get<T> 메서드

Returns the IXEObjectInfo matching the given name, if it exists and unique.

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

구문

‘선언
Public Function Get(Of T As {SfcInstance, IXEObjectInfo}) ( _
    name As String _
) As T
‘사용 방법
Dim instance As XEStore.ObjectMetadata 
Dim name As String 
Dim returnValue As T

returnValue = instance.Get(name)
public T Get<T>(
    string name
)
where T : SfcInstance, IXEObjectInfo
public:
generic<typename T>
where T : SfcInstance, IXEObjectInfo
T Get(
    String^ name
)
member Get : 
        name:string -> 'T  when 'T : SfcInstance and IXEObjectInfo
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.

유형 매개 변수

  • T
    The type of the object to return.

매개 변수

  • name
    유형: System.String
    The name containing the following formatted parts: [module_guid].package_name.object_name; where the first two parts are optional.

반환 값

유형: T
The IXEObjectInfo matching the given name.

주의

This method throws XEventException exception if the object does not exist, or if the object name is not unique.

참고 항목

참조

XEStore.ObjectMetadata 클래스

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