EnvironmentVariables ClassEnvironmentVariables ClassEnvironmentVariables Class

A base class for classes with provides methods to access available environment variables.

Inheritance Hierarchy

Syntax

Public MustInherit Class EnvironmentVariables _
        Implements IEnvironmentVariables, _
                   IEnumerable(Of KeyValuePair(Of String, String)), _
                   System.Collections.IEnumerable
public:
ref class EnvironmentVariables abstract : IEnvironmentVariables^,
        IEnumerable<KeyValuePair<String^, String^>>,
        System.Collections::IEnumerable^
 
The EnvironmentVariablesEnvironmentVariablesEnvironmentVariables type exposes the following members.

Constructors

 ConstructorDescription
Protected methodEnvironmentVariablesEnvironmentVariablesEnvironmentVariables Initializes a new instance of the EnvironmentVariablesEnvironmentVariablesEnvironmentVariables class.

Top

Properties

 PropertyDescription
Public propertystaticEmptyEmptyEmpty Gets an empty EnvironmentVariablesEnvironmentVariablesEnvironmentVariables collection.
Public propertyIsStableIsStableIsStable Gets a value indicating whether this IEnvironmentVariablesIEnvironmentVariablesIEnvironmentVariables is stable.
Public propertyItemItemItem Gets the stringStringString with the specified key.

Top

Methods

 MethodDescription
Public methodstaticCreate ()Create ()Create () Creates an EnvironmentVariablesEnvironmentVariablesEnvironmentVariables instance which contains the system environment variables.
Public methodstaticCreate (IDictionary<string, string>)Create (IDictionary(Of String, String))Create (IDictionary<String^, String^>^) Creates an EnvironmentVariablesEnvironmentVariablesEnvironmentVariables instance from the specified dictionary.
Public methodstaticCreate (IDictionary<string, string>, bool)Create (IDictionary(Of String, String), Boolean)Create (IDictionary<String^, String^>^, bool) Creates an EnvironmentVariablesEnvironmentVariablesEnvironmentVariables instance from the specified dictionary.
Public methodstaticCreate (IEnumerable<KeyValuePair<string, string>>)Create (IEnumerable(Of KeyValuePair(Of String, String)))Create (IEnumerable<KeyValuePair<String^, String^>>^) Creates an EnvironmentVariablesEnvironmentVariablesEnvironmentVariables instance from the specified enumerable collection.
Public methodstaticCreate (NameValueCollection)Create (NameValueCollection)Create (NameValueCollection^) Creates an EnvironmentVariablesEnvironmentVariablesEnvironmentVariables instance from the specified NameValueCollectionNameValueCollectionNameValueCollection.
Public methodstaticCreate (EnvironmentVariableTarget)Create (EnvironmentVariableTarget)Create (EnvironmentVariableTarget) Creates an EnvironmentVariablesEnvironmentVariablesEnvironmentVariables instance which contains the system environment variables.
Public methodObject.EqualsObject.EqualsObject::EqualsDetermines whether the specified object is equal to the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.FinalizeObject.FinalizeObject::FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodGetEnumeratorGetEnumeratorGetEnumerator Returns an enumerator that iterates through the collection.
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCodeServes as the default hash function. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetTypeObject.GetTypeObject::GetTypeGets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToStringReturns a string that represents the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)

Top

Explicit Interface Implementations

 NameDescription
Explicit interface implementationPrivate methodIEnumerable.GetEnumeratorIEnumerable.GetEnumeratorIEnumerable::GetEnumerator Returns an enumerator that iterates through a collection.

Top