Compartilhar via


BaseXEStore.ObjectMetadata.Get<T>(String) Method

Definition

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

public T Get<T> (string name) where T : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.XEvent.IXEObjectInfo;
member this.Get : string -> 'T (requires 'T :> Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance and 'T :> Microsoft.SqlServer.Management.XEvent.IXEObjectInfo)
Public Function Get(Of T As {SfcInstance, IXEObjectInfo}) (name As String) As T

Type Parameters

T

Type of object to get.

Parameters

name
String

format: [module_guid].package_name.object_name; NB: the first two parts of the name are optional

Returns

T

IXEObjectInfo matching the given name.

Exceptions

if the object does not exist, or if the object name is not unique

Applies to