Interface IEnvValidator
Represents the validator of the required keys.
Namespace: DotEnv.Core
Assembly: DotEnv.Core.dll
Syntax
public interface IEnvValidator
Methods
Name | Description |
---|---|
IgnoreException() | Disables/ignores RequiredKeysNotPresentException. This method tells the validator not to throw an exception when it encounters one or more errors. |
SetRequiredKeys(String[]) | Sets the required keys by means of a string collection. |
SetRequiredKeys(Type) | Sets the required keys by means of the properties of a class or struct. |
SetRequiredKeys<TKeys>() | Sets the required keys by means of the properties of a class or struct. |
Validate() | Validates whether the required keys are present in the application. |
Validate(out EnvValidationResult) | Validates whether the required keys are present in the application. |