Gets or sets whether missing source tables, columns, and their relationships are to be added to the data set schema, to be ignored, or to cause an error to be raised.
[Visual Basic] Property MissingSchemaAction As MissingSchemaAction [C#] MissingSchemaAction MissingSchemaAction {get; set;} [C++] MissingSchemaAction get_MissingSchemaAction() = 0;void set_MissingSchemaAction(MissingSchemaAction) = 0; [JScript] abstract function get MissingSchemaAction() : MissingSchemaAction; public abstract function set MissingSchemaAction(MissingSchemaAction);
One of the MissingSchemaAction values. The default is Add.
Exception Type | Condition |
---|---|
InvalidSchemaAction(System.Int32) | The value set is not one of the MissingSchemaAction values. |
The following example shows how to set the MissingSchemaAction property.
[Visual Basic]
Sub SetMissingSchemaAction () Dim adoDataSetComm As ADODataSetCommand adoDataSetComm = New ADODataSetCommand ' Set the action to Error when a table or column is missing adoDataSetComm.MissingSchemaAction = MissingSchemaAction.Error End Sub
IDataSetCommand Interface | IDataSetCommand Members | System.Data Namespace | MissingMappingAction