ConstraintCollection Class
Represents a collection of IConstraint objects.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DictionaryCollectionBase<IConstraint, SortedList<String, IConstraint>>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.SortedListCollection<IConstraint>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.ConstraintCollection
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Public Class ConstraintCollection _
Inherits SortedListCollection(Of IConstraint)
'Usage
Dim instance As ConstraintCollection
public class ConstraintCollection : SortedListCollection<IConstraint>
public ref class ConstraintCollection : public SortedListCollection<IConstraint^>
type ConstraintCollection =
class
inherit SortedListCollection<IConstraint>
end
public class ConstraintCollection extends SortedListCollection<IConstraint>
The ConstraintCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConstraintCollection(CollationInfo) | Initializes a new instance of the ConstraintCollection class that uses the specified CollationInfo object and the default initial capacity. | |
ConstraintCollection(Int32, CollationInfo) | Initializes a new instance of the ConstraintCollection class that uses the specified capacity and CollationInfo object. |
Top
Properties
Name | Description | |
---|---|---|
AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. (Inherited from SortedListCollection<T>.) | |
Count | Gets the number of elements in the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Item | Gets or sets the object in the collection that has the specified name. (Inherited from DictionaryCollectionBase<T, U>.) |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds an object to the collection using its name as the key. (Inherited from DictionaryCollectionBase<T, U>.) | |
AddRange | Adds the elements in the specified collection to this collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Clear | Removes all elements from the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Clone() | Creates an IMutableMetadataCollection<T> object that is a copy of this object, except for the elements. (Inherited from DictionaryCollectionBase<T, U>.) | |
Clone(Boolean) | Creates an IMutableMetadataCollection<T> object that is a copy of this object and, if specified, also copies the elements. (Inherited from SortedListCollection<T>.) | |
Contains(String) | Determines whether the specified element is in the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Contains(T) | Determines whether the specified element is in the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Equals | (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. (Inherited from DictionaryCollectionBase<T, U>.) | |
FindAll(String) | Finds all elements in the collection that have the specified name. (Inherited from DictionaryCollectionBase<T, U>.) | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Remove(String) | Removes the object with the specified name from the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Remove(T) | Removes the specified object from the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable<IMetadataObject>.GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from SortedListCollection<T>.) | |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<IMetadataObject>.AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<IMetadataObject>.Contains(String) | Determines whether the collection contains an element that has the specified name. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<IMetadataObject>.Contains(IMetadataObject) | Determines whether the collection contains the specified object. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<IMetadataObject>.Count | Gets the number of elements in the collection. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<IMetadataObject>.FindAll(String) | Retrieves all elements in the collection that have the specified name. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>) | Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<T>.Item[String] | Gets the specified element from the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
IMetadataCollection<IMetadataObject>.Item[String] | Gets the element that has the specified name. (Inherited from SortedListCollection<T>.) |
Top
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.