Share via


MetadataFormattingOptionsBuilder.WithEncoding(Encoding) Method

Definition

Sets on the options the encoding that is used in metadata content serialization.

public Microsoft.AnalysisServices.Tabular.Serialization.MetadataFormattingOptionsBuilder WithEncoding (System.Text.Encoding encoding);
member this.WithEncoding : System.Text.Encoding -> Microsoft.AnalysisServices.Tabular.Serialization.MetadataFormattingOptionsBuilder
Public Function WithEncoding (encoding As Encoding) As MetadataFormattingOptionsBuilder

Parameters

encoding
Encoding

The encoding that will be set on the options.

Returns

The same instance of the MetadataFormattingOptionsBuilder.

Exceptions

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

Applies to