Click or drag to resize

EnvAccess class

Access to the environment and to some application properties.
Implements IGetStringValue.
Inheritance hierarchy
SystemObject
  NetEti.ApplicationEnvironmentEnvAccess

Namespace: NetEti.ApplicationEnvironment
Assembly: NetEti.EnvAccess (in NetEti.EnvAccess.dll) Version: 1.0.0+c5c038966671ba49f3a11888a845ad02585d8821
Syntax
public class EnvAccess : IGetStringValue

The EnvAccess Type exposes the following members.

Constructors
 NameDescription of the
Public MethodEnvAccess Standard constructor.
Back to the top
Properties
 NameDescription of the
Public PropertyActivationData Conversion to .net standard 2.0. Replaces the command line arguments for ClickOnce installations under .net standard 2.0.
Public PropertyDescription Returns a descriptive name of this StringValueGetter, e.g. name plus source path if applicable.
Back to the top
Methods
 NameDescription of the
Public MethodGetStringValue Returns exactly one value for a key. If there is no value for the key, defaultValue is returned.
Public MethodGetStringValues Returns a string array for a key. If there is no value for the key, defaultValue is returned.
Back to the top
Remarks
File: EnvAccess.cs
Author: Erik Nagel, NetEti

08.03.2012 Erik Nagel: created 01.05.2020 Erik Nagel: adapted to DotNet Core 3.0 compatibility: accesses no longer via System.IO and System.Windows.Forms.Application, but via System.Reflection.Assembly.GetEntryAssembly().
See also