NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IDataSetCommand.MissingMappingAction

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);

Property Value

One of the MissingMappingAction values. The default is Passthrough.

Exceptions

Exception Type Condition
InvalidMappingAction(System.Int32) The value set is not one of the MissingMappingAction values.

Remarks

The TableMappings property provides the master mapping between the returned records and the DataSet.

Example [Visual Basic]

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

See Also

IDataSetCommand Interface | IDataSetCommand Members | System.Data Namespace | MissingSchemaAction