﻿<?xml version="1.0" encoding="utf-8"?><Type Name="EnvironmentVariableTarget" FullName="System.EnvironmentVariableTarget"><TypeSignature Language="C#" Value="public enum EnvironmentVariableTarget" /><TypeSignature Language="ILAsm" Value=".class public auto ansi sealed EnvironmentVariableTarget extends System.Enum" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Enum</BaseTypeName></Base><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.EnvironmentVariableTarget" /> enumeration is used by certain overloads of the <see cref="Overload:System.Environment.SetEnvironmentVariable" />, <see cref="Overload:System.Environment.GetEnvironmentVariable" />, and <see cref="Overload:System.Environment.GetEnvironmentVariables" /> methods to specify the location, or target, where the name and value of an environment variable is stored or retrieved. </para><para>The target can be one of three locations: the environment block associated with the current process, the Windows operating system registry key reserved for environment variables associated with the current user, or the registry key reserved for environment variables associated with all users on the local machine. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Specifies the location where an environment variable is stored or retrieved in a set or get operation.</para></summary></Docs><Members><Member MemberName="Machine"><MemberSignature Language="C#" Value="Machine" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.EnvironmentVariableTarget Machine = int32(2)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.EnvironmentVariableTarget</ReturnType></ReturnValue><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When a user creates the environment variable in a set operation, the operating system stores the environment variable in the system registry, but not in the current process. If any user on the local machine starts a new process, the operating system copies the environment variable from the registry to that process. </para><para>When the process terminates, the operating system destroys the environment variable in that process. However, the environment variable in the registry persists until a user removes it programmatically or by means of an operating system tool.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>The environment variable is stored or retrieved from the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment key in the Windows operating system registry. </para></summary></Docs></Member><Member MemberName="Process"><MemberSignature Language="C#" Value="Process" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.EnvironmentVariableTarget Process = int32(0)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.EnvironmentVariableTarget</ReturnType></ReturnValue><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The user creates the environment variable in a set operation. </para><para>When the process terminates, the operating system destroys the environment variable in that process.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>The environment variable is stored or retrieved from the environment block associated with the current process. </para></summary></Docs></Member><Member MemberName="User"><MemberSignature Language="C#" Value="User" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.EnvironmentVariableTarget User = int32(1)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.EnvironmentVariableTarget</ReturnType></ReturnValue><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When the user creates the environment variable in a set operation, the operating system stores the environment variable in the system registry, but not in the current process. If the user starts a new process, the operating system copies the environment variable from the registry to that process. </para><para>When the process terminates, the operating system destroys the environment variable in that process. However, the environment variable in the registry persists until the user removes it programmatically or by means of an operating system tool.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>The environment variable is stored or retrieved from the HKEY_CURRENT_USER\Environment key in the Windows operating system registry. </para></summary></Docs></Member></Members></Type>