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.All

Gets or sets all of the relations in the collection.

[Visual Basic]
MustOverride Public Property All As DataRelation ()
[C#]
public DataRelation[] All {abstract get; abstract set;}
[C++]
public: __property virtual DataRelation* get_All() = 0;public: __property virtual void set_All(DataRelation*[]) = 0;
[JScript]
public abstract function get All() : DataRelation[];
public abstract function set All(DataRelation[]);

Property Value

An array of DataRelation objects.

Remarks

The All method throws an exception if any relation that is added shouldn't be added and if any relation is removed shouldn't be removed. If an exception is thrown, the collection returns to its original state.

The OnCollectionChanged event occurs if setting the property to a new values succeeds.

See Also

RelationsCollection Class | RelationsCollection Members | System.Data Namespace | Add | Remove