Compartir a través de


DataObjectRestrictionMapper.MapValuesToRestriction Method

Maps a set of generic restrictions to a data-source-specific restriction.

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

Syntax

'Declaration
Public MustOverride Function MapValuesToRestriction ( _
    conceptName As String, _
    index As Integer, _
    values As Object() _
) As Object
public abstract Object MapValuesToRestriction(
    string conceptName,
    int index,
    Object[] values
)
public:
virtual Object^ MapValuesToRestriction(
    String^ conceptName, 
    int index, 
    array<Object^>^ values
) abstract
abstract MapValuesToRestriction : 
        conceptName:string * 
        index:int * 
        values:Object[] -> Object
public abstract function MapValuesToRestriction(
    conceptName : String, 
    index : int, 
    values : Object[]
) : Object

Parameters

  • conceptName
    Type: System.String

    Name of the type concept on which generic restrictions are being supplied.

  • index
    Type: System.Int32

    Index of the data-source-specific restriction to which a mapping is made.

  • values
    Type: array<System.Object[]

    The set of initial generic restriction values to use in this custom restriction mapping.

Return Value

Type: System.Object
Returns the value of the requested source-specific restriction.

Exceptions

Exception Condition
ArgumentNullException

The conceptName and/or values parameters are null.

ArgumentOutOfRangeException

The index parameter is not a valid restriction index.

.NET Framework Security

See Also

Reference

DataObjectRestrictionMapper Class

Microsoft.VisualStudio.Data Namespace