共用方式為


MetadataFormattingOptionsBuilder 類別

定義

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

   Provides the ability to build the set of formatting options that are used during metadata serialization.
public sealed class MetadataFormattingOptionsBuilder
type MetadataFormattingOptionsBuilder = class
Public NotInheritable Class MetadataFormattingOptionsBuilder
繼承
MetadataFormattingOptionsBuilder

建構函式

MetadataFormattingOptionsBuilder(MetadataFormattingOptions)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

建立由指定選項初始化之 類別的 MetadataFormattingOptionsBuilder 實例。

MetadataFormattingOptionsBuilder(MetadataSerializationStyle)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

根據指定的樣式建立 類別的 MetadataFormattingOptionsBuilder 實例。

屬性

Encoding

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

取得元數據內容串行化中使用的編碼方式。

IndentationMode

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

取得元數據內容串行化的縮排模式。

IndentationSize

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

取得當空格做為元數據內容串行化中的縮排時,單一縮排層級的大小。

NewLineStyle

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

取得值,這個值用來指出元數據內容串行化中文字行的結尾。

方法

GetOptions()

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

取得使用所選取格式設定選項初始化的 MetadataFormattingOptions 實例。

WithEncoding(Encoding)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

設定元數據內容串行化中使用的編碼選項。

WithNewLineStyle(NewLineStyle)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

在選項上設定元數據內容串行化中文字行結尾的指示。

WithSpacesIndentationMode(Int32)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

設定縮排的選項是以具有指定長度的樣式為基礎 Tabs

WithTabsIndentationMode()

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

設定縮排的選項是以樣式為基礎 Tabs

擴充方法

GetBaseIndentationLevel(MetadataFormattingOptionsBuilder)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

取得 TMDL 檔的基底縮排層級。

GetCasingStyle(MetadataFormattingOptionsBuilder)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

取得關鍵詞寫入 TMDL 文字的大小寫樣式。

WithBaseIndentationLevel(MetadataFormattingOptionsBuilder, Int32)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

設定 TMDL 檔的基底縮排層級。

WithCasingStyle(MetadataFormattingOptionsBuilder, TmdlCasingStyle)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

設定關鍵詞寫入 TMDL 文字的大小寫樣式。

適用於