Environment.SystemDirectory Eigenschap

Definitie

Hiermee haalt u het volledig gekwalificeerde pad van de systeemmap op.

public:
 static property System::String ^ SystemDirectory { System::String ^ get(); };
public static string SystemDirectory { get; }
static member SystemDirectory : string
Public Shared ReadOnly Property SystemDirectory As String

Waarde van eigenschap

Een tekenreeks met een mappad.

Voorbeelden

In het volgende voorbeeld wordt de systeemmap weergegeven van de computer waarop het codevoorbeeld wordt uitgevoerd. (De systeemmap wordt om veiligheidsredenen weggelaten uit de voorbeelduitvoer.)

// Sample for the Environment.SystemDirectory property
using System;

class Sample
{
    public static void Main()
    {
    Console.WriteLine();
//  <-- Keep this information secure! -->
    Console.WriteLine("SystemDirectory: {0}", Environment.SystemDirectory);
    }
}
/*
This example produces the following results:

SystemDirectory: C:\WINNT\System32
*/
// Sample for the Environment.SystemDirectory property
open System

//  <-- Keep this information secure! -->
printfn $"\nSystemDirectory: {Environment.SystemDirectory}"

// This example produces the following results:
//     SystemDirectory: C:\WINNT\System32
' Sample for the Environment.SystemDirectory property
Class Sample
   Public Shared Sub Main()
      Console.WriteLine()
      '  <-- Keep this information secure! -->
      Console.WriteLine("SystemDirectory: {0}", Environment.SystemDirectory)
   End Sub
End Class
'
'This example produces the following results:
'
'SystemDirectory: C:\WINNT\System32
'

Opmerkingen

Een voorbeeld van de geretourneerde waarde is de tekenreeks C:\WINDOWS\System32.

Van toepassing op