Метод 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