This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ForeignKeyConstraint Members
Public:
Constructor
Properties
AcceptRejectRule |
Indicates what kind of action should take place across this constraint when AcceptChanges is invoked. |
Columns |
Gets the child columns of this constraint. |
ConstraintName (inherited from Constraint) |
The name of this constraint within the ConstraintsCollection. An ArgumentException is thrown if setting the name to null or empty string and the column belongs to a collection. A DuplicateNameException is thrown if this column belongs to a collection and it already has a column with the same name (case insensitive). |
DataSet |
Gets the DataSet to which this ForeignKeyConstraint belongs. |
DeleteRule |
Gets or sets the action that occurs across this constraint on when a row is deleted. |
IsPrimaryKey (inherited from Constraint) |
Gets a value indicating whether the constraint is on a primary key column. |
RelatedColumns |
The parent columns of this constraint. |
RelatedTable |
Gets the parent table of this constraint. |
Table |
Gets the child table of this constraint. |
UpdateRule |
Gets or sets the action that occurs across this constraint on when a row is deleted. |
Methods
Equals |
Gets a value indicating whether the current ForeignKeyConstraint is identical to the specified object. |
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. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Properties
_DataSet (inherited from Constraint) |
Gets the DataSet to which this constraint belongs. |
Methods
CheckStateForProperty (inherited from Constraint) |
[To be supplied.] |
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. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
OnPropertyChanged |
Inheriting classes should override this method to handle this event. Call base.OnPropertyChanged to send this event to any registered event listeners. |
RaisePropertyChanged |
Raises the property changed event. This creates the needed event data and then calls OnPropertyChanged. |
SetDataSet (inherited from Constraint) |
Sets the constraint's DataSet. |
Events
Event Hookup:
Methods
RemoveOnPropertyChanged |
Removes an event handler for the property changed event. This event occurs when any property on the control has been changed for any reason. |
AddOnPropertyChanged |
Adds an event handler for the property changed event. This event occurs when any property on the control has been changed for any reason. |
See Also
ForeignKeyConstraint Class | System.Data Namespace