IVsDataMappedObjectConverter.ConvertToUnderlyingRestriction 方法

当实现由选件类,将指定的映射限制为源特定的数据的基础限制。

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

语法

声明
Function ConvertToUnderlyingRestriction ( _
    mappedTypeName As String, _
    substitutionValueIndex As Integer, _
    mappedRestrictions As Object() _
) As Object
Object ConvertToUnderlyingRestriction(
    string mappedTypeName,
    int substitutionValueIndex,
    Object[] mappedRestrictions
)
Object^ ConvertToUnderlyingRestriction(
    String^ mappedTypeName, 
    int substitutionValueIndex, 
    array<Object^>^ mappedRestrictions
)
abstract ConvertToUnderlyingRestriction : 
        mappedTypeName:string * 
        substitutionValueIndex:int * 
        mappedRestrictions:Object[] -> Object 
function ConvertToUnderlyingRestriction(
    mappedTypeName : String, 
    substitutionValueIndex : int, 
    mappedRestrictions : Object[]
) : Object

参数

  • mappedTypeName
    类型:System.String
    映射的类型的名称。
  • substitutionValueIndex
    类型:System.Int32
    索引到替换值中。
  • mappedRestrictions
    类型:array<System.Object[]
    包含映射的限制的数组。

返回值

类型:System.Object
从将映射的限制转换的基础限制。

备注

此方法很有用,当映射对象选择器(IVsDataMappedObjectSelector)时需要转换映射的限制为基础限制传递给数据源特定类型的选择器。此过程称为" 映射的选择。

.NET Framework 安全性

请参见

参考

IVsDataMappedObjectConverter 接口

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空间