Show / Hide Table of Contents

Class ModelReaderWriterOptions

Provides the client options for reading and writing models.

Inheritance
System.Object
ModelReaderWriterOptions
Namespace: System.Dynamic.ExpandoObject
Assembly: System.ClientModel.dll
Syntax
[System.Runtime.CompilerServices.Nullable(0)]
[System.Runtime.CompilerServices.NullableContext(1)]
public class ModelReaderWriterOptions

Constructors

ModelReaderWriterOptions(String)

Initializes a new instance of ModelReaderWriterOptions.

Declaration
public ModelReaderWriterOptions (string format);
Parameters
System.String format

The format to read and write models. Pass in 'W' to use the service defined wire format.

Properties

Format

Gets the format to read and write the model.

Declaration
public string Format { get; }
Property Value
System.String

Json

Default options for writing models into JSON format.

Declaration
public static System.ClientModel.Primitives.ModelReaderWriterOptions Json { get; }
Property Value
ModelReaderWriterOptions

Xml

Default options for writing models into XML format.

Declaration
public static System.ClientModel.Primitives.ModelReaderWriterOptions Xml { get; }
Property Value
ModelReaderWriterOptions

Back to top Azure SDK for .NET