共用方式為


DataMappedObjectConverter.ConvertToUnderlyingRestriction 方法 (String, Int32, array<Object[], array<Object )

將指定的對應限制輸入是資料來源特定的基礎的限制。

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Protected Overridable Function ConvertToUnderlyingRestriction ( _
    mappedTypeName As String, _
    substitutionValueIndex As Integer, _
    mappedRestrictions As Object(), _
    parameters As Object() _
) As Object
protected virtual Object ConvertToUnderlyingRestriction(
    string mappedTypeName,
    int substitutionValueIndex,
    Object[] mappedRestrictions,
    Object[] parameters
)
protected:
virtual Object^ ConvertToUnderlyingRestriction(
    String^ mappedTypeName, 
    int substitutionValueIndex, 
    array<Object^>^ mappedRestrictions, 
    array<Object^>^ parameters
)
abstract ConvertToUnderlyingRestriction : 
        mappedTypeName:string * 
        substitutionValueIndex:int * 
        mappedRestrictions:Object[] * 
        parameters:Object[] -> Object 
override ConvertToUnderlyingRestriction : 
        mappedTypeName:string * 
        substitutionValueIndex:int * 
        mappedRestrictions:Object[] * 
        parameters:Object[] -> Object 
protected function ConvertToUnderlyingRestriction(
    mappedTypeName : String, 
    substitutionValueIndex : int, 
    mappedRestrictions : Object[], 
    parameters : Object[]
) : Object

參數

  • mappedTypeName
    型別:System.String
    對應之型別的名稱。
  • substitutionValueIndex
    型別:System.Int32
    索引替代值中。
  • mappedRestrictions
    型別:array<System.Object[]
    包含對應之限制的陣列。
  • parameters
    型別:array<System.Object[]
    包含參數的陣列。

傳回值

型別:System.Object
從這個對應的限制轉換的基礎的限制。

備註

這個方法很有用,在對應的物件選取器 ([T:Microsoft.VisualStudio.Data.Services.IVsDataMappedObjectSelector)] 需要轉換對應的限制為基礎的限制傳遞給資料來源特定型別選取器 (IVsDataMappedObjectSelector)。這個程序稱為 對應的選取範圍。

繼承者注意事項

衍生類別應該覆寫這個方法。這個方法的基底實作會擲回 NotImplementedException

.NET Framework 安全性

請參閱

參考

DataMappedObjectConverter 類別

ConvertToUnderlyingRestriction 多載

Microsoft.VisualStudio.Data.Framework 命名空間