Export (0) Print
Expand All

DictionaryCollectionBase<T, U> Class

Provides the base class for metadata object collections.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

[DefaultMemberAttribute("Item")]
public abstract class DictionaryCollectionBase<T, U> : IMutableMetadataCollection<T>, 
	IMetadataCollection<T>, IEnumerable<T>, IEnumerable 
where T : class, IMetadataObject 
where U : class, Object, IDictionary<string, T>

Type Parameters

T

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

U

The type of the underlying container, constrained to IDictionary.

The DictionaryCollectionBase<T, U> type exposes the following members.

  NameDescription
Protected methodDictionaryCollectionBase<T, U>Initializes a new instance of the DictionaryCollectionBase class.
Top

  NameDescription
Public propertyAsMetadataObjectCollectionGets an IMetaCollection object that contains this collection.
Public propertyCountGets the number of elements in the collection.
Public propertyItemGets or sets the object in the collection that has the specified name.
Top

  NameDescription
Public methodAddAdds an object to the collection using its name as the key.
Public methodAddRangeAdds the elements in the specified collection to this collection.
Public methodClearRemoves all elements from the collection.
Public methodClone()Creates an IMutableMetadataCollection<T> object that is a copy of this object, except for the elements.
Public methodClone(Boolean)Creates an IMutableMetadataCollection<T> object that is a copy of this object and, if specified, also copies the elements
Public methodContains(String)Determines whether the specified element is in the collection.
Public methodContains(T)Determines whether the specified element is in the collection.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindAll(Predicate<T>)Finds all elements in the collection that match the conditions defined by the specified predicate.
Public methodFindAll(String)Finds all elements in the collection that have the specified name.
Public methodGetEnumeratorReturns an enumerator that iterates through the collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove(String)Removes the object with the specified name from the collection.
Public methodRemove(T)Removes the specified object from the collection.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that iterates through the collection.
Explicit interface implemetationPrivate propertyIMetadataCollection<T>.ItemGets the specified element from the collection.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft