When implemented by a class, converts the specified mapped restrictions into underlying restrictions that are data source–specific.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Function ConvertToUnderlyingRestriction ( _
mappedTypeName As String, _
substitutionValueIndex As Integer, _
mappedRestrictions As Object() _
) As Object
'使用
Dim instance As IVsDataMappedObjectConverter
Dim mappedTypeName As String
Dim substitutionValueIndex As Integer
Dim mappedRestrictions As Object()
Dim returnValue As Object
returnValue = instance.ConvertToUnderlyingRestriction(mappedTypeName, _
substitutionValueIndex, mappedRestrictions)
Object ConvertToUnderlyingRestriction(
string mappedTypeName,
int substitutionValueIndex,
Object[] mappedRestrictions
)
Object^ ConvertToUnderlyingRestriction(
String^ mappedTypeName,
int substitutionValueIndex,
array<Object^>^ mappedRestrictions
)
function ConvertToUnderlyingRestriction(
mappedTypeName : String,
substitutionValueIndex : int,
mappedRestrictions : Object[]
) : Object
Parameters
mappedTypeName
Type: System.StringThe name of the mapped type.
substitutionValueIndex
Type: System.Int32Index into the array of substitution values.
mappedRestrictions
Type: []An array containing the mapped restrictions.
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 (IVsDataMappedObjectSelector) needs to convert the mapped restrictions to the underlying restrictions to pass to the data source–specific type selector. This process is referred to as mapped selection.
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
IVsDataMappedObjectConverter Interface
IVsDataMappedObjectConverter Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace