Interface IEnvParser
Defines the methods that control the parser behavior.
Namespace: DotEnv.Core
Assembly: DotEnv.Core.dll
Syntax
public interface IEnvParser
Methods
Name | Description |
---|---|
AllowConcatDuplicateKeys(ConcatKeysOptions) | Allows concatenating the values of the duplicate keys. |
AllowOverwriteExistingVars() | Allows overwriting the existing variables of a specific provider (e.g., current process or a Dictionary<TKey,TValue>). |
AvoidModifyEnvironment() | Avoids modifying the environment of the current process. When this method is used, the environment variables are obtained from a Dictionary<TKey,TValue> and not from the current process. |
DisableTrimEndKeys() | Disables the trim at the end of the keys. This method will tell the parser not to remove trailing white spaces from the keys. |
DisableTrimEndValues() | Disables the trim at the end of the values. This method will tell the parser not to remove trailing white spaces from the values. |
DisableTrimKeys() | Disables the trim at the start and end of the keys. |
DisableTrimStartComments() | Disables the trim at the start of the comments. This method will tell the parser not to remove leading white spaces from the comments. |
DisableTrimStartKeys() | Disables the trim at the start of the keys. This method will tell the parser not to remove leading white spaces from the keys. |
DisableTrimStartValues() | Disables the trim at the start of the values. This method will tell the parser not to remove leading white spaces from the values. |
DisableTrimValues() | Disables the trim at the start and end of the values. |
IgnoreParserException() | Disables/ignores ParserException. This method tells the parser not to throw an exception when it encounters one or more errors. |
Parse(String) | Start the parsing to extract the key-value pair from a data source. |
Parse(String, out EnvValidationResult) | Start the parsing to extract the key-value pair from a data source. |
SetCommentChar(Char) | Sets the character that will define the beginning of a comment. |
SetDelimiterKeyValuePair(Char) | Sets the delimiter that separates an assignment of a value to a key. |
SetEnvironmentVariablesProvider(IEnvironmentVariablesProvider) | Sets the environment variables provider. When this method is used, the environment variables are obtained from the custom provider. |