DataAdapter.MissingMappingAction Property

Determines the action to take when incoming data does not have a matching table or column.

Namespace: System.Data.Common
Assembly: System.Data (in

Public Property MissingMappingAction As MissingMappingAction
Dim instance As DataAdapter
Dim value As MissingMappingAction

value = instance.MissingMappingAction

instance.MissingMappingAction = value
/** @property */
public final MissingMappingAction get_MissingMappingAction ()

/** @property */
public final void set_MissingMappingAction (MissingMappingAction value)

public final function get MissingMappingAction () : MissingMappingAction

public final function set MissingMappingAction (value : MissingMappingAction)

Not applicable.

Property Value

One of the MissingMappingAction values. The default is Passthrough.

Exception typeCondition


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 creates a derived class, OleDbDataAdapter and sets some of its properties.

' Assumes a valid connection string to an Access database.
Private Sub CreateOleDbDataAdapter(ByVal connectionString As String)
    Dim adapter As New OleDbDataAdapter()
    adapter.SelectCommand = _
       New OleDbCommand("SELECT * FROM Categories ORDER BY CategoryID")
    adapter.SelectCommand.Connection = New OleDbConnection _
    adapter.MissingMappingAction = MissingMappingAction.Error
    adapter.MissingSchemaAction = MissingSchemaAction.Error
End Sub

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0

Community Additions