Share via


MetadataCompatibilityOptionsExtensions.WithTargetCompatibilityLevel Method

Definition

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.

Applies to