共用方式為


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 命名空間