MetadataCompatibilityOptionsExtensions.WithTargetCompatibilityLevel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets on the options the compatibility-level that is targeted during the metadata content serialization.
public static Microsoft.AnalysisServices.Tabular.Serialization.MetadataCompatibilityOptions WithTargetCompatibilityLevel(this Microsoft.AnalysisServices.Tabular.Serialization.MetadataCompatibilityOptions options, int level);
static member WithTargetCompatibilityLevel : Microsoft.AnalysisServices.Tabular.Serialization.MetadataCompatibilityOptions * int -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataCompatibilityOptions
<Extension()>
Public Function WithTargetCompatibilityLevel (options As MetadataCompatibilityOptions, level As Integer) As MetadataCompatibilityOptions
Parameters
- options
- MetadataCompatibilityOptions
The instance of the options to update.
- level
- Int32
The target compatibility-level.
Returns
The cloned instance of the MetadataCompatibilityOptions after the change.
Exceptions
The specified options instance is a null reference (Nothing in Visual Basic).
The specified level is invalid.