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[]);
An array of DataRelation objects.
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.
RelationsCollection Class | RelationsCollection Members | System.Data Namespace | Add | Remove