DataObjectSelector.GetMappings 方法

return键/值对映射的属性名称及其相应的数据源特定属性名。

命名空间:  Microsoft.VisualStudio.Data.Framework
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Protected Shared Function GetMappings ( _
    mappingParameters As Object() _
) As IDictionary(Of String, Object)
protected static IDictionary<string, Object> GetMappings(
    Object[] mappingParameters
)
protected:
static IDictionary<String^, Object^>^ GetMappings(
    array<Object^>^ mappingParameters
)
static member GetMappings : 
        mappingParameters:Object[] -> IDictionary<string, Object> 
protected static function GetMappings(
    mappingParameters : Object[]
) : IDictionary<String, Object>

参数

  • mappingParameters
    类型:array<System.Object[]
    键/值对包含在映射的属性名称及其对应的参数之间的映射。

返回值

类型:System.Collections.Generic.IDictionary<String, Object>
键/值对集合映射的属性名称及其相应的数据源特定属性名。

异常

异常 条件
ArgumentNullException

mappingParameters 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

mappingParameters 参数值的第一个元素表示数据源特定属性名对于每个属性。

.NET Framework 安全性

请参见

参考

DataObjectSelector 类

Microsoft.VisualStudio.Data.Framework 命名空间