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] Public Property MissingSchemaAction As MissingSchemaAction [C#] public MissingSchemaAction MissingSchemaAction {get; set;} [C++] public: __property MissingSchemaAction get_MissingSchemaAction(); public: __property void set_MissingSchemaAction(MissingSchemaAction); [JScript] public function get MissingSchemaAction() : MissingSchemaAction; public function set MissingSchemaAction(MissingSchemaAction);
One of the MissingSchemaAction values. The default is Add.
Exception Type | Condition |
---|---|
InvalidSchemaAction | 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
DataSetCommand Class | DataSetCommand Members | System.Data.Internal Namespace | MissingMappingAction