Share via


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

Converts the specified mapped restrictions into underlying restrictions that are data source specific.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
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

Parameters

  • mappedTypeName
    Type: System.String

    The name of the mapped type.

  • substitutionValueIndex
    Type: System.Int32

    Index into the array of substitution values.

  • mappedRestrictions
    Type: array<System.Object[]

    An array containing the mapped restrictions.

  • parameters
    Type: array<System.Object[]

    An array containing the parameters.

Return Value

Type: System.Object
The underlying restriction that is converted from the mapped restriction.

Remarks

This method is useful when the mapped object selector ([T:Microsoft.VisualStudio.Data.Services.IVsDataMappedObjectSelector)] needs to convert the mapped restrictions to the underlying restrictions to pass to the data source–specific type selector (IVsDataMappedObjectSelector.) This process is referred to as mapped selection.

Notes to Inheritors

The derived class should override this method. The base implementation of this method throws a NotImplementedException.

.NET Framework Security

See Also

Reference

DataMappedObjectConverter Class

ConvertToUnderlyingRestriction Overload

Microsoft.VisualStudio.Data.Framework Namespace