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

Property Value

One of the MissingSchemaAction values. The default is Add.

Exceptions

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

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