MetadataFormattingOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the formatting options that are used during metadata serialization.
public class MetadataFormattingOptions : ICloneable
type MetadataFormattingOptions = class
interface ICloneable
Public Class MetadataFormattingOptions
Implements ICloneable
- Inheritance
-
MetadataFormattingOptions
- Derived
- Implements
Remarks
A MetadataFormattingOptions instance is immutable; to set up the actual options, use the MetadataFormattingOptionsBuilder class, or the WithXXX\WithoutXXX entension methods.
Properties
| Name | Description |
|---|---|
| Default |
Gets the default options for metadata formatting during serialization activity. |
| Encoding |
Gets the encoding that is used in metadata content serialization. |
| IndentationMode |
Gets the indentation mode that is in metadata content serialization. |
| IndentationSize |
Gets the size of a single indentation level, when spaces are used as indentation in metadata content serialization. |
| NewLineStyle |
Gets the value that is used to indicate the end of a text line in metadata content serialization. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| ICloneable.Clone() | |
Extension Methods
| Name | Description |
|---|---|
| WithEncoding(MetadataFormattingOptions, Encoding) |
Sets on the options the encoding that is used in metadata content serialization. |
| WithNewLineStyle(MetadataFormattingOptions, NewLineStyle) |
Sets on the options the indication of the end of a text line in metadata content serialization. |
| WithSpacesIndentationMode(MetadataFormattingOptions, Int32) |
Sets on the options that indentaition is based on Tabs style with the specified length. |
| WithTabsIndentationMode(MetadataFormattingOptions) |
Sets on the options that indentaition is based on Tabs style. |