BaseXEStore.ObjectMetadata.GetAll 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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:名称的第一部分是可选的
返回
ICollection<T>
与给定名称匹配的所有 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
对象名称。
返回
ICollection<T>
与给定包名称、对象名称匹配的 IXEObjectInfo 集合。