SPCompatibilityRange.ImposeOnLevel method
Retrieves a valid compatibility level from the range that is the given level or is closest to the given level.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function ImposeOnLevel ( _
CompatibilityLevel As Integer _
) As Integer
'Usage
Dim instance As SPCompatibilityRange
Dim CompatibilityLevel As Integer
Dim returnValue As Integer
returnValue = instance.ImposeOnLevel(CompatibilityLevel)
public int ImposeOnLevel(
int CompatibilityLevel
)
Parameters
CompatibilityLevel
Type: System.Int32The compatibility level to aim for.
Return value
Type: System.Int32
The level closest to the given level that is inside this compatibility range object.