GetProcessorArchitectureAsync() 공개 정적인 메소드

public static GetProcessorArchitectureAsync ( ) : Task
리턴 Task
예제 #1
0
        public static string GetArchitecture()
        {
            ProcessorArchitecture architecture = SystemInfoEstimate.GetProcessorArchitectureAsync().Result;

            switch (architecture)
            {
            case ProcessorArchitecture.Arm: return("arm");

            case ProcessorArchitecture.X86: return("x86");

            case ProcessorArchitecture.X64: return("x64");

            case ProcessorArchitecture.Neutral: return("neutral");

            case ProcessorArchitecture.Unknown: return("unknown");

            default: return("unknown");
            }
        }