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
'宣言
Public MustOverride Function MapValuesToRestriction ( _
conceptName As String, _
index As Integer, _
values As Object() _
) As Object
'使用
Dim instance As DataObjectRestrictionMapper
Dim conceptName As String
Dim index As Integer
Dim values As Object()
Dim returnValue As Object
returnValue = instance.MapValuesToRestriction(conceptName, _
index, values)
public abstract Object MapValuesToRestriction(
string conceptName,
int index,
Object[] values
)
public:
virtual Object^ MapValuesToRestriction(
String^ conceptName,
int index,
array<Object^>^ values
) abstract
public abstract function MapValuesToRestriction(
conceptName : String,
index : int,
values : Object[]
) : Object
Parameters
conceptName
Type: System.StringName of the type concept on which generic restrictions are being supplied.
index
Type: System.Int32Index of the data-source-specific restriction to which a mapping is made.
values
Type: []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. |
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataObjectRestrictionMapper Class