IMetadataCollection(T) 接口

Defines size, enumerators, lookup and filtering methods for all metadata object collections. The interface provides read-only access to the elements in the collection.

命名空间:  Microsoft.SqlServer.Management.SqlParser.Metadata
程序集:  Microsoft.SqlServer.Management.SqlParser(在 Microsoft.SqlServer.Management.SqlParser.dll 中)

语法

声明
Public Interface IMetadataCollection(Of T As IMetadataObject) _
    Inherits IEnumerable(Of T), IEnumerable
用法
Dim instance As IMetadataCollection(Of T)
public interface IMetadataCollection<T> : IEnumerable<T>, 
    IEnumerable
where T : IMetadataObject
generic<typename T>
where T : IMetadataObject
public interface class IMetadataCollection : IEnumerable<T>, 
    IEnumerable
type IMetadataCollection<'T when 'T : IMetadataObject> =  
    interface
        interface IEnumerable<'T>
        interface IEnumerable
    end
JScript 不支持一般类型和方法。

类型参数

  • T
    The type of the elements in the collection, constrained to IMetadataObject.

IMetadataCollection<(Of <(<'T>)>)> 类型公开以下成员。

属性

  名称 说明
公共属性 AsMetadataObjectCollection Gets an IMetadataCollection<(Of <(<'T>)>)> object that contains this collection.
公共属性 Count Gets the number of elements in the collection.
公共属性 Item Gets the element in the collection by name.

页首

方法

  名称 说明
公共方法 Contains(String) Determines whether the collection contains an element that has the specified name.
公共方法 Contains(T) Determines whether the collection contains the specified object.
公共方法 FindAll(Predicate< (Of < <' (T> ) > > )) Retrieves all elements in the collection that match the conditions defined by the specified predicate.
公共方法 FindAll(String) Retrieves all elements in the collection that have the specified name.
公共方法 GetEnumerator() () () () (从 IEnumerable< (Of < ( <'T> ) > ) > 继承。)
公共方法 GetEnumerator() () () () (从 IEnumerable 继承。)

页首