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::Equals Determines whether the specified objectObjectobject is equal to the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.FinalizeObject.FinalizeObject::Finalize Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject 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::GetHashCode Serves as a hash function for a particular type. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetTypeObject.GetTypeObject::GetType Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToString Returns a stringStringString that represents the current objectObjectobject. (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