语言

BaseXEStore.ObjectMetadata.GetAll 方法

定义

重载

名称 说明
GetAll<T>(String)

返回与给定名称匹配的所有 IXEObjectInfo 集合。

GetAll<T>(String, String)

返回与给定包名称、对象名称匹配的 IXEObjectInfo 集合。

GetAll<T>(String)

返回与给定名称匹配的所有 IXEObjectInfo 集合。

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

类型参数

T

要枚举的对象的类型。

参数

name
String

format:package_name.object_name;NB:名称的第一部分是可选的

返回

与给定名称匹配的所有 IXEObjectInfo 集合。

例外

如果提供的名称为 null,则为 null。

适用于

GetAll<T>(String, String)

返回与给定包名称、对象名称匹配的 IXEObjectInfo 集合。

public System.Collections.Generic.ICollection<T> GetAll<T>(string pkgName, string objName) where T : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.XEvent.IXEObjectInfo;
member this.GetAll : string * string -> System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance and 'T :> Microsoft.SqlServer.Management.XEvent.IXEObjectInfo)> (requires 'T :> Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance and 'T :> Microsoft.SqlServer.Management.XEvent.IXEObjectInfo)
Public Function GetAll(Of T As {SfcInstance, IXEObjectInfo}) (pkgName As String, objName As String) As ICollection(Of T)

类型参数

T

要枚举的对象的类型。

参数

pkgName
String

包名称。

objName
String

对象名称。

返回

与给定包名称、对象名称匹配的 IXEObjectInfo 集合。

适用于