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!

RelationsCollection.Remove

[To be supplied.]

Overload List

Removes the relation at the given index from the collection. An IndexOutOfRangeException is thrown if this collection doesn't have a relation at this index. The CollectionChanged event is fired if it succeeds.

[Visual Basic] Overloads Public Sub Remove(Integer)
[C#] public void Remove(int);
[C++] public: void Remove(int);
[JScript] public function Remove(int);

Removes the relation with the given name from the collection. An IndexOutOfRangeException is thrown if this collection doesn't have a relation with that name The CollectionChanged event is fired if it succeeds.

[Visual Basic] Overloads Public Sub Remove(String)
[C#] public void Remove(String);
[C++] public: void Remove(String*);
[JScript] public function Remove(String);

Removes the given relation from the collection. An ArgumentNullException is thrown if this relation is null. An ArgumentException is thrown if this relation doesn't belong to this collection. The CollectionChanged event is fired if it succeeds.

[Visual Basic] Overloads Public Sub Remove(DataRelation)
[C#] public void Remove(DataRelation);
[C++] public: void Remove(DataRelation*);
[JScript] public function Remove(DataRelation);

See Also

RelationsCollection Class | RelationsCollection Members | System.Data Namespace