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!

DataSetCommand.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]
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);

Property Value

One of the MissingMappingAction values. The default is Passthrough.

Exceptions

Exception Type Condition
InvalidMappingAction 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

DataSetCommand Class | DataSetCommand Members | System.Data.Internal Namespace | MissingSchemaAction