共用方式為


DataObjectSelector.GetMappings 方法

歸位字元 (Carriage 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 命名空間