次の方法で共有


MetadataFormattingOptionsBuilder クラス

定義

メタデータのシリアル化中に使用される一連の書式設定オプションを作成する機能を提供します。

public sealed class MetadataFormattingOptionsBuilder
type MetadataFormattingOptionsBuilder = class
Public NotInheritable Class MetadataFormattingOptionsBuilder
継承
MetadataFormattingOptionsBuilder

コンストラクター

MetadataFormattingOptionsBuilder(MetadataFormattingOptions)

指定したオプションによって初期化される MetadataFormattingOptionsBuilder クラスのインスタンスを作成します。

MetadataFormattingOptionsBuilder(MetadataSerializationStyle)

指定したスタイルに基づいて、MetadataFormattingOptionsBuilder クラスのインスタンスを作成します。

プロパティ

Encoding

メタデータ コンテンツのシリアル化で使用されるエンコードを取得します。

IndentationMode

メタデータ コンテンツのシリアル化にあるインデント モードを取得します。

IndentationSize

メタデータ コンテンツのシリアル化でスペースがインデントとして使用されている場合の、1 つのインデント レベルのサイズを取得します。

NewLineStyle

メタデータ コンテンツのシリアル化でテキスト行の末尾を示すために使用される値を取得します。

メソッド

GetOptions()

選択した書式設定オプションを使用して初期化 MetadataFormattingOptions のインスタンスを取得します。

WithEncoding(Encoding)

メタデータ コンテンツのシリアル化で使用されるエンコードのオプションを設定します。

WithNewLineStyle(NewLineStyle)

メタデータ コンテンツのシリアル化におけるテキスト行の末尾を示すオプションを設定します。

WithSpacesIndentationMode(Int32)

インデントが指定した長さのスタイルに基づくオプション Tabs 設定します。

WithTabsIndentationMode()

インデントが Tabs スタイルに基づくオプションを設定します。

拡張メソッド

GetBaseIndentationLevel(MetadataFormattingOptionsBuilder)

TMDL ドキュメントの基本インデントのレベルを取得します。

GetCasingStyle(MetadataFormattingOptionsBuilder)

TMDL テキストにキーワードが書き込まれる大文字と小文字のスタイルを取得します。

WithBaseIndentationLevel(MetadataFormattingOptionsBuilder, Int32)

TMDL ドキュメントの基本インデントのレベルを設定します。

WithCasingStyle(MetadataFormattingOptionsBuilder, TmdlCasingStyle)

TMDL テキストにキーワードを書き込む大文字と小文字のスタイルを設定します。

適用対象