应用选择器映射。
命名空间: Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Protected Shared Sub ApplyMappings ( _
dataTable As DataTable, _
mappings As IDictionary(Of String, Object) _
)
protected static void ApplyMappings(
DataTable dataTable,
IDictionary<string, Object> mappings
)
protected:
static void ApplyMappings(
DataTable^ dataTable,
IDictionary<String^, Object^>^ mappings
)
static member ApplyMappings :
dataTable:DataTable *
mappings:IDictionary<string, Object> -> unit
protected static function ApplyMappings(
dataTable : DataTable,
mappings : IDictionary<String, Object>
)
参数
- dataTable
类型:System.Data.DataTable
该模式通过调用返回到 GetSchema 方法。
- mappings
类型:System.Collections.Generic.IDictionary<String, Object>
键/值对包含选择器映射。
异常
异常 | 条件 |
---|---|
ArgumentNullException | schema 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。