Del via


TmdlSerializationOptionsExtensions.WithExpressionTrimStyle Method

Definition

Sets the style in which whitespaces in lines in an expression block, are trimmed when serialized into TMDL text.

public static Microsoft.AnalysisServices.Tabular.Tmdl.TmdlSerializationOptions WithExpressionTrimStyle(this Microsoft.AnalysisServices.Tabular.Tmdl.TmdlSerializationOptions options, Microsoft.AnalysisServices.Tabular.Tmdl.TmdlExpressionTrimStyle style);
static member WithExpressionTrimStyle : Microsoft.AnalysisServices.Tabular.Tmdl.TmdlSerializationOptions * Microsoft.AnalysisServices.Tabular.Tmdl.TmdlExpressionTrimStyle -> Microsoft.AnalysisServices.Tabular.Tmdl.TmdlSerializationOptions
<Extension()>
Public Function WithExpressionTrimStyle (options As TmdlSerializationOptions, style As TmdlExpressionTrimStyle) As TmdlSerializationOptions

Parameters

options
TmdlSerializationOptions

The instance of the options to update.

style
TmdlExpressionTrimStyle

The style in which lines are trimmed.

Returns

The cloned instance of the TmdlSerializationOptions after the change.

Exceptions

The specified options instance is a null reference (Nothing in Visual Basic).

Applies to