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 命名空间