CollectionItemCollection 类

The CollectionItemCollection class is a collection class for collection item objects. It is derived from the SFC::SfcCollectionBase class.

继承层次结构

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<CollectionItem, CollectionItem.Key, CollectionSet>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<CollectionItem, CollectionItem.Key, CollectionSet>
      Microsoft.SqlServer.Management.Collector.CollectionItemCollection

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

语法

声明
Public NotInheritable Class CollectionItemCollection _
    Inherits SfcCollatedDictionaryCollection(Of CollectionItem, CollectionItem.Key, CollectionSet)
用法
Dim instance As CollectionItemCollection
public sealed class CollectionItemCollection : SfcCollatedDictionaryCollection<CollectionItem, CollectionItem.Key, CollectionSet>
public ref class CollectionItemCollection sealed : public SfcCollatedDictionaryCollection<CollectionItem^, CollectionItem.Key^, CollectionSet^>
[<SealedAttribute>]
type CollectionItemCollection =  
    class 
        inherit SfcCollatedDictionaryCollection<CollectionItem, CollectionItem.Key, CollectionSet>
    end
public final class CollectionItemCollection extends SfcCollatedDictionaryCollection<CollectionItem, CollectionItem.Key, CollectionSet>

CollectionItemCollection 类型公开以下成员。

构造函数

  名称 说明
公共方法 CollectionItemCollection Initializes a new instance of the CollectionItemCollection class.

页首

属性

  名称 说明
公共属性 Ascending Gets or sets a value indicating whether to sort in ascending order. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
公共属性 Count Gets the number of elements contained in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
受保护属性 Initialized Gets a value indicating whether the collection has been initialized. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共属性 IsReadOnly Gets a value indicating whether the collection is read-only. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
公共属性 IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共属性 Item[String] Gets the name of the collection item.
公共属性 Item[K] Gets the item specified by the key. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
受保护属性 Parent Gets or sets the type of the parent object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共属性 SyncRoot Gets or sets an object that can be used to synchronize access to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)

页首

方法

  名称 说明
公共方法 Add Adds the specified object to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共方法 AddCollectionItem Adds a collection item to the collection set.
公共方法 Clear Removes all items from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
公共方法 Contains(T) Determines whether the collection contains the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
公共方法 CopyTo(array<T[], Int32) Copies the elements from the collection to the specified array, starting at the specified array index. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
公共方法 CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共方法 Equals (从 Object 继承。)
公共方法 GetEnumerator Returns an enumerator that can iterate through the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 Refresh() Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共方法 Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共方法 Remove Removes the specified object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
公共方法 RemoveCollectionItem Removes a collection item from the collection set.
受保护方法 RemoveInternal Marks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
受保护方法 Rename Renames the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
公共方法 ToString (从 Object 继承。)
公共方法 TryGetValue Gets the value associated with the specified key. (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IComparer<K>.Compare 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Compares two keys. (从 SfcCollatedDictionaryCollection<T, K, ParentT> 继承。)
显式接口实现私有属性 IListSource.ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 IEnumerable.GetEnumerator Gets an enumerator that can iterate the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 IListSource.GetList Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.Add Adds the specified object to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.AddShadow Adds the specified object to the shadow collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有属性 ISfcCollection.Count Gets the number of items contained in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.EnsureInitialized Initializes the collection from the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.FinishMerge Swaps the new collection for the old collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.GetElementFactory Gets the factory that is used to instantiate objects for the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.GetExisting Uses the specified key to retrieve an existing item from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.GetObjectByKey Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有属性 ISfcCollection.Initialized Gets or sets a value indicating whether the collection has been initialized. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有属性 ISfcCollection.Parent Gets the parent object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.PrepareMerge Prepares to merge fresh query results into the existing collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.Remove Removes the specified object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.RemoveElement Removes the specified element from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)
显式接口实现私有方法 ISfcCollection.Rename Renames the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcCollection<T, K, ParentT> 继承。)

页首

注释

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Management.Collector 命名空间