Table of Contents

DotEnvWriterOptions Struct

Definition

Namespace
Bodu.Text.DotEnv.Writer
Assembly
Bodu.Text.DotEnv.dll
Package
Bodu.Text.DotEnv 1.0.0
Source
DotEnvWriterOptions.cs

Provides configuration for a Utf8DotEnvWriter, controlling how entries are emitted.

public readonly struct DotEnvWriterOptions
Inherited Members
Extension Methods

Remarks

The options are an immutable value type; assign the init-only properties through an object initializer and read Default for the standard behaviour.

Properties

Default

Gets the default writer options.

public static DotEnvWriterOptions Default { get; }

Property Value

DotEnvWriterOptions

The default options.

WriteExportPrefix

Gets a value indicating whether every written key is prefixed with the export keyword.

public bool WriteExportPrefix { get; init; }

Property Value

bool

true to emit an export prefix before each key; otherwise false.

Applies to

ProductVersions
.NET8, 10