NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ConstraintsCollection Methods

The methods of the ConstraintsCollection class are listed below. For a complete list of ConstraintsCollection class members, see the ConstraintsCollection Members topic.

Public:

Add Overloaded. [To be supplied.]
CanRemoveConstraint Throws an exception if constraint can't be removed from collection. Otherwise it returns whether or not the constraint needs to be removed from the collection.
Clear Clears the collection of any constraints. Fires the CollectionChangeEvent.
Contains Overloaded. [To be supplied.]
CopyTo (inherited from BaseCollection) [To be supplied.]
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetEnumerator (inherited from BaseCollection) [To be supplied.]
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
IndexOf Overloaded. [To be supplied.]
Remove Overloaded. [To be supplied.]
ShouldPersistAll [To be supplied.]
ToString (inherited from Object) Returns a String that represents the current Object.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
IndexOf Overloaded. [To be supplied.]
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnCollectionChanged This method is called whenever the collection changes. Overriders of this method should call the base implementation of this method.

Event Hookup:

AddOnCollectionChanged Registers the handler to get events whenever this collection changes.
RemoveOnCollectionChanged Unregisters the handler from getting events whenever this collection changes.

See Also

ConstraintsCollection Class | System.Data Namespace