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