1 <Type Name="Environment" FullName="System.Environment">
2 <TypeSignature Language="C#" Value="public static class Environment" />
3 <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit Environment extends System.Object" />
5 <AssemblyName>DocTest</AssemblyName>
6 <AssemblyVersion>0.0.0.0</AssemblyVersion>
9 <BaseTypeName>System.Object</BaseTypeName>
14 <para> Provides the current settings for, and information about, the execution environment.</para>
17 <block subset="none" type="note">
18 <para>Use this class to retrieve the following
22 <term>Command line arguments</term>
25 <term>Exit codes</term>
28 <term>Environment variable settings</term>
31 <term>Contents of the call stack</term>
34 <term>Time since last system boot</term>
37 <term>Version of the execution engine</term>
44 <Member MemberName="GetFolderPath">
45 <MemberSignature Language="C#" Value="public static string GetFolderPath (Environment.SpecialFolder folder);" />
46 <MemberSignature Language="ILAsm" Value=".method public static hidebysig string GetFolderPath(valuetype System.Environment/SpecialFolder folder) cil managed" />
47 <MemberType>Method</MemberType>
49 <AssemblyVersion>0.0.0.0</AssemblyVersion>
52 <ReturnType>System.String</ReturnType>
55 <Parameter Name="folder" Type="System.Environment+SpecialFolder" />
59 <para>A <see cref="T:System.Environment+SpecialFolder" />.</para>
62 <para> Returns the arguments specified on the command
66 <para> Returns a <see cref="T:System.String" /> array. Each <see cref="T:System.String" /> in the array
67 contains a single command line argument.</para>
70 <para>The first element in the array contains the filename of
71 the executing program. If the filename is not available, the first element is
72 equal to <see cref="F:System.String.Empty" />. The remaining elements contain any additional tokens
73 entered on the command line.</para>
74 <block subset="none" type="note">
75 <para>The program filename can, but is not required to,
76 include path information.</para>
77 <para>To obtain the command line as a single <see cref="T:System.String" />, use the <see cref="P:System.Environment.CommandLine" />
81 <exception cref="T:System.NotSupportedException">To be added; from: <see cref="M:System.Environment.GetFolderPath(System.Environment.SpecialFolder)" /></exception>
82 <exception cref="T:System.ArgumentException">foo</exception>
83 <permission cref="T:System.SomePermission">bar</permission>
84 <altmember cref="T:System.SomeMember">alt member</altmember>
85 <seealso cref="T:System.SomeMember">another member</seealso>
86 <unrecognized attribute="a-ko">should be appended to new docs</unrecognized>