Gets or sets whether unmapped source tables or columns are to be passed with their source names to be filtered, or to cause an error to be raised.
[Visual Basic] Property MissingMappingAction As MissingMappingAction [C#] MissingMappingAction MissingMappingAction {get; set;} [C++] MissingMappingAction get_MissingMappingAction() = 0;void set_MissingMappingAction(MissingMappingAction) = 0; [JScript] abstract function get MissingMappingAction() : MissingMappingAction; public abstract function set MissingMappingAction(MissingMappingAction);
One of the MissingMappingAction values. The default is Passthrough.
Exception Type | Condition |
---|---|
InvalidMappingAction(System.Int32) | The value set is not one of the MissingMappingAction values. |
The TableMappings property provides the master mapping between the returned records and the DataSet.
The following example shows how to set the MissingMappingAction property.
[Visual Basic]
Sub SetMissingMappingAction () Dim adoDataSetComm As ADODataSetCommand adoDataSetComm = New ADODataSetCommand 'Set action to Ignore when table or column is missing from table adoDataSetComm.MissingMappingAction = MissingMappingAction.Ignore End Sub
IDataSetCommand Interface | IDataSetCommand Members | System.Data Namespace | MissingSchemaAction