IMutableMetadataCollection(T) 接口

Defines methods to manipulate collections of objects that implement the IMetadataObject interface.

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

语法

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

类型参数

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

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

属性

  名称 说明
公共属性 AsMetadataObjectCollection Gets an IMetadataCollection<(Of <(<'T>)>)> object that contains this collection. (从 IMetadataCollection< (Of < ( <'T> ) > ) > 继承。)
公共属性 Count Gets the number of elements in the collection. (从 IMetadataCollection< (Of < ( <'T> ) > ) > 继承。)
公共属性 Item[ ( [ ( String] ) ] ) Gets the element in the collection by name. (从 IMetadataCollection< (Of < ( <'T> ) > ) > 继承。)
公共属性 Item[ ( [ ( String] ) ] ) Gets or sets the element in the collection by name.

页首

方法

  名称 说明
公共方法 Add Adds an element to the end of the collection.
公共方法 AddRange Adds the elements in the specified collection to the end of this collection.
公共方法 Clear Removes all elements from the collection.
公共方法 Clone() () () () Creates an IMutableMetadataCollection<(Of <(<'T>)>)> instance that is a copy of this object, except for the elements.
公共方法 Clone(Boolean) Creates an IMutableMetadataCollection<(Of <(<'T>)>)> instance that is a copy of this object and, if specified, also copies the elements.
公共方法 Contains(String) Determines whether the collection contains an element that has the specified name. (从 IMetadataCollection< (Of < ( <'T> ) > ) > 继承。)
公共方法 FindAll(Predicate< (Of < <' (T> ) > > )) Retrieves all elements in the collection that match the conditions defined by the specified predicate. (从 IMetadataCollection< (Of < ( <'T> ) > ) > 继承。)
公共方法 FindAll(String) Retrieves all elements in the collection that have the specified name. (从 IMetadataCollection< (Of < ( <'T> ) > ) > 继承。)
公共方法 GetEnumerator() () () () (从 IEnumerable< (Of < ( <'T> ) > ) > 继承。)
公共方法 GetEnumerator() () () () (从 IEnumerable 继承。)
公共方法 Remove(String) Removes the first element that has the specified name from the collection.
公共方法 Remove(T) Removes the first occurrence of a specific object from the collection.

页首