DotEnvWriterOptions Struct
Definition
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
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |