CollectionItemCollection Class
The CollectionItemCollection class is a collection class for collection item objects. It is derived from the SFC::SfcCollectionBase class.
Inheritance Hierarchy
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
Namespace: Microsoft.SqlServer.Management.Collector
Assembly: Microsoft.SqlServer.Management.Collector (in Microsoft.SqlServer.Management.Collector.dll)
Syntax
'Declaration
Public NotInheritable Class CollectionItemCollection _
Inherits SfcCollatedDictionaryCollection(Of CollectionItem, CollectionItem.Key, CollectionSet)
'Usage
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>
The CollectionItemCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CollectionItemCollection | Initializes a new instance of the CollectionItemCollection class. |
Top
Properties
Name | Description | |
---|---|---|
Ascending | Gets or sets a value indicating whether to sort in ascending order. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
Count | Gets the number of elements contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
Initialized | Gets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
IsReadOnly | Gets a value indicating whether the collection is read-only. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
IsSynchronized | Gets or sets a value indicating whether access to the collection is synchronized (thread safe). Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
Item[String] | Gets the name of the collection item. | |
Item[K] | Gets the item specified by the key. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
Parent | Gets or sets the type of the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
SyncRoot | Gets or sets an object that can be used to synchronize access to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
AddCollectionItem | Adds a collection item to the collection set. | |
Clear | Removes all items from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
Contains(T) | Determines whether the collection contains the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
CopyTo(array<T[], Int32) | Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
CopyTo(Array, Int32) | Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
Equals | (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that can iterate through the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Refresh() | Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
Refresh(Boolean) | Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
Remove | Removes the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from 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. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
Rename | Renames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ToString | (Inherited from Object.) | |
TryGetValue | Gets the value associated with the specified key. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IComparer<K>.Compare | Do not reference this member directly in your code. It supports the SQL Server infrastructure. Compares two keys. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
IListSource.ContainsListCollection | Gets a value indicating whether the collection is a collection of IList objects. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
IEnumerable.GetEnumerator | Gets an enumerator that can iterate the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from 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. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.Add | Adds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.AddShadow | Adds the specified object to the shadow collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.Count | Gets the number of items contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.EnsureInitialized | Initializes the collection from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.FinishMerge | Swaps the new collection for the old collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.GetCollectionElementNameImpl | Gets the URN suffix for elements in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.GetElementFactory | Gets the factory that is used to instantiate objects for the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.GetExisting | Uses the specified key to retrieve an existing item from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from 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 (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.Initialized | Gets or sets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.Parent | Gets the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.PrepareMerge | Prepares to merge fresh query results into the existing collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.Remove | Removes the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.RemoveElement | Removes the specified element from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
ISfcCollection.Rename | Renames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) |
Top
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.