Share via


MetadataCompatibilityOptionsBuilder.WithTargetCompatibilityLevel Method

Definition

Sets on the options the compatibility-level that is targeted during the metadata content serialization.

public Microsoft.AnalysisServices.Tabular.Serialization.MetadataCompatibilityOptionsBuilder WithTargetCompatibilityLevel (int level);
member this.WithTargetCompatibilityLevel : int -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataCompatibilityOptionsBuilder
Public Function WithTargetCompatibilityLevel (level As Integer) As MetadataCompatibilityOptionsBuilder

Parameters

level
Int32

The target compatibility-level.

Returns

The same instance of the MetadataCompatibilityOptionsBuilder.

Exceptions

The specified level is invalid.

Applies to