Export (0) Print
Expand All

ApplicationId.ProcessorArchitecture Property

Note: This property is new in the .NET Framework version 2.0.

Gets the target processor architecture for the application.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public string ProcessorArchitecture { get; }
/** @property */
public String get_ProcessorArchitecture ()

public function get ProcessorArchitecture () : String

Property Value

The processor architecture of the application.

Valid values include "msil", "x86", "ia64", and "amd64". The default is "msil", or Microsoft intermediate language, which means all your assemblies are platform independent, and the common language runtime will compile them when they are needed by your application.

The following code example displays the ProcessorArchitecture property by obtaining the ApplicationId from an ApplicationSecurityInfo instance created using the ActivationContext for the currently executing manifest-based application. This code example is part of a larger example provided for the ApplicationId class.

Console.WriteLine("ApplicationId.ProcessorArchitecture property = " + asi.ApplicationId.ProcessorArchitecture);

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft