Is 2003 Vista Or Greater : Environment Settings « Development Class « C# / C Sharp






Is 2003 Vista Or Greater

    

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


  internal class OSHelper
  {
    internal static bool Is2003VistaOrGreater { get { return Environment.OSVersion.Version.CompareTo(new Version(5, 2)) >= 0; } }
    internal static bool IsVistaOrGreater { get { return Environment.OSVersion.Version.CompareTo(new Version(6, 0)) >= 0; } }
  }

   
    
    
    
  








Related examples in the same category

1.Environment Variables for Simple Security TasksEnvironment Variables for Simple Security Tasks
2.Get Startup path, application name and vendorGet Startup path, application name and vendor
3..NET Frameworks Overview:Accessing Environment Settings.NET Frameworks Overview:Accessing Environment Settings
4.Environment.GetEnvironmentVariable
5.Environment.ExpandEnvironmentVariables
6.Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Process)
7.Environment.CommandLine, Environment.GetCommandLineArgs()
8.Environment.GetFolderPath
9.Environment.SpecialFolder
10.Environment.CommandLine
11.Environment.OSVersion
12.Environment.Version
13.Environment.UserName
14.Environment.UserDomainName
15.Environment.MachineName
16.Environment.UserInteractive
17.Environment.HasShutdownStarted
18.Environment.TickCount
19.Environment.GetLogicalDrives
20.Environment.CurrentDirectory
21.Environment.SystemDirectory
22.Environment Class
23.Gets the command line for this process.
24.Gets or sets the fully qualified path of the current working directory.
25.Terminates this process and gives the underlying operating system the specified exit code.
26.Gets or sets the exit code of the process.
27.Replaces the name of each environment variable embedded in string
28.Immediately terminates a process after writing a message to the Windows Application event log
29.Returns a string array containing the command-line arguments for the current process.
30.Retrieves the value of an environment variable from the current process.
31.Retrieves all environment variable names and their values from the current process.
32.Gets the path to the system special folder that is identified by the specified enumeration.
33.Get the names of the logical drives on the current computer.
34.Gets the NetBIOS name of this local computer.
35.Gets the newline string defined for this environment.
36.Gets current platform identifier and version number.
37.Gets the number of processors on the current machine.
38.Gets current stack trace information.
39.Gets the fully qualified path of the system directory.
40.Gets the number of milliseconds elapsed since the system started.
41.Gets network domain name associated with the current user.
42.Is running in user interactive mode.
43.Gets user name
44.Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.
45.Gets the amount of physical memory mapped to the process context.
46.Xml based configuration
47.FindExecutable
48.Contains a listing of constants used throughout the application
49.Is Flag Set In the Command Line