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.MissingSchemaAction

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]
Property MissingSchemaAction As MissingSchemaAction
[C#]
MissingSchemaAction MissingSchemaAction {get; set;}
[C++]
MissingSchemaAction get_MissingSchemaAction() = 0;void set_MissingSchemaAction(MissingSchemaAction) = 0;
[JScript]
abstract function get MissingSchemaAction() : MissingSchemaAction;
public abstract function set MissingSchemaAction(MissingSchemaAction);

Property Value

One of the MissingSchemaAction values. The default is Add.

Exceptions

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

Example [Visual Basic]

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

See Also

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