DictionaryCollectionBase<T, U> Class
Provides the base class for metadata object collections.
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Microsoft.SqlServer.Management.SqlParser.MetadataProvider::DictionaryCollectionBase<T, U>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider::DictionaryCollection<T>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider::SortedListCollection<T>
generic<typename T, typename U> where T : ref class, IMetadataObject where U : ref class, IDictionary<String^, T> [DefaultMemberAttribute("Item")] public ref class DictionaryCollectionBase abstract : IMutableMetadataCollection<T>, IMetadataCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
- T
The type of the elements in the collection, constrained to IMetadataObject.
- U
The type of the underlying container, constrained to T:System.Collections.Generic.IDictionary`1.
| Name | Description | |
|---|---|---|
![]() | DictionaryCollectionBase<T, U>(U) | Initializes a new instance of the T:Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DictionaryCollectionBase`1 class. |
| Name | Description | |
|---|---|---|
![]() | AsMetadataObjectCollection | Gets an T:Microsoft.SqlServer.Management.SqlParser.Metadata.IMetaCollection`1 object that contains this collection. |
![]() | Count | Gets the number of elements in the collection. |
![]() | Item[String^] | Gets or sets the object in the collection that has the specified name. |
| Name | Description | |
|---|---|---|
![]() | Add(T) | Adds an object to the collection using its name as the key. |
![]() | AddRange(IEnumerable<T>^) | Adds the elements in the specified collection to this collection. |
![]() | Clear() | Removes all elements from the collection. |
![]() | Clone() | Creates an IMutableMetadataCollection<T> object that is a copy of this object, except for the elements. |
![]() | Clone(Boolean) | Creates an IMutableMetadataCollection<T> object that is a copy of this object and, if specified, also copies the elements |
![]() | Contains(T) | Determines whether the specified element is in the collection. |
![]() | Contains(String^) | Determines whether the specified element is in the collection. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | FindAll(Predicate<T>^) | Finds all elements in the collection that match the conditions defined by the specified predicate. |
![]() | FindAll(String^) | Finds all elements in the collection that have the specified name. |
![]() | GetEnumerator() | Returns an enumerator that iterates through the collection. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Remove(T) | Removes the specified object from the collection. |
![]() | Remove(String^) | Removes the object with the specified name from the collection. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable::GetEnumerator() | Returns an enumerator that iterates through the collection. |
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




