MetadataSchemaSerializationOptionsBuilder 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.
Provides the ability to build the set of formatting options that are used during metadata schema serialization.
public sealed class MetadataSchemaSerializationOptionsBuilder
type MetadataSchemaSerializationOptionsBuilder = class
Public NotInheritable Class MetadataSchemaSerializationOptionsBuilder
- Inheritance
-
MetadataSchemaSerializationOptionsBuilder
Constructors
MetadataSchemaSerializationOptionsBuilder(MetadataSchemaSerializationOptions) |
Creates an instance of the MetadataSchemaSerializationOptionsBuilder class that is initialized by the specified options. |
MetadataSchemaSerializationOptionsBuilder(MetadataSerializationStyle) |
Creates an instance of the MetadataSchemaSerializationOptionsBuilder class based on the specified style. |
Properties
Compatibility |
Gets an optional compatibility options that should be used when serializing the metadata. |
Formatting |
Gets an optional formatting options that should be used when generating the metadata content. |
Methods
GetOptions() |
Gets an instance of MetadataSchemaSerializationOptions initialized with the serialization options that were chosen. |
WithCompatibilityOptions(MetadataCompatibilityOptions) |
Sets the compatibility options that should be used during the serialization. |
WithFormattingOptions(MetadataFormattingOptions) |
Sets the formatting options that should be used when generating the metadata content. |
WithoutCompatibilityOptions() |
Resets the compatibility options that should be used during the serialization, and restore the default options. |
WithoutFormattingOptions() |
Resets the formatting options that should be used when generating the metadata content, and restore the default options. |