ApplicationId.ProcessorArchitecture プロパティ

定義

対象となるアプリケーションのプロセッサ アーキテクチャを取得します。

public:
 property System::String ^ ProcessorArchitecture { System::String ^ get(); };
public string? ProcessorArchitecture { get; }
public string ProcessorArchitecture { get; }
member this.ProcessorArchitecture : string
Public ReadOnly Property ProcessorArchitecture As String

プロパティ値

アプリケーションのプロセッサ アーキテクチャ。

次のコード例では、現在実行中のProcessorArchitectureマニフェスト ベースのアプリケーションの を使用してActivationContext作成されたインスタンスから ApplicationSecurityInfo を取得ApplicationIdして、 プロパティを表示します。 このコード例は、ApplicationId クラスのために提供されている大規模な例の一部です。

Console.WriteLine("ApplicationId.ProcessorArchitecture property = " + asi.ApplicationId.ProcessorArchitecture);
printfn $"ApplicationId.ProcessorArchitecture property = {asi.ApplicationId.ProcessorArchitecture}"
Console.WriteLine("ApplicationId.ProcessorArchitecture property = " + _
    asi.ApplicationId.ProcessorArchitecture)

注釈

有効な値には、"msil"、"x86"、"ia64"、"amd64" が含まれます。 既定値は "msil" または中間言語Microsoftです。つまり、すべてのアセンブリがプラットフォームに依存せず、共通言語ランタイムは、アプリケーションで必要なときにコンパイルされます。

適用対象