Search Results for

    Show / Hide Table of Contents

    Class EnvBinder

    Allows binding strongly typed objects to configuration values.

    Inheritance
    Object
    EnvBinder
    Implements
    IEnvBinder
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: DotEnv.Core
    Assembly: DotEnv.Core.dll
    Syntax
    public class EnvBinder : IEnvBinder

    Constructors

    Name Description
    EnvBinder()

    Initializes a new instance of the EnvBinder class.

    EnvBinder(IEnvironmentVariablesProvider)

    Initializes a new instance of the EnvBinder class with environment variables provider.

    Methods

    Name Description
    AllowBindNonPublicProperties()

    Allows binding of non-public properties. This method tells the binder that it can set non-public properties.

    Bind<TSettings>()

    Binds the instance of the environment variables provider to a new instance of type TSettings.

    Bind<TSettings>(out EnvValidationResult)

    Binds the instance of the environment variables provider to a new instance of type TSettings.

    IgnoreException()

    Disables/ignores BinderException. This method tells the binder not to throw an exception when it encounters one or more errors.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2021 DotEnv.Core