Windows Phone 7 Tip (7) -- 如何判断app在模拟器中运行

Microsoft.Devices.Environment.DeviceType

 

    // Summary:
    //     Defines the device type values used by the Microsoft.Devices.Environment.DeviceType
    //     property.
    public enum DeviceType
    {
        // Summary:
        //     The device type is an actual device.
        Device = 0,
        //
        // Summary:
        //     The device type is a device emulator.
        Emulator = 1,
    }

posted @ 2010-07-30 15:57  上尉  阅读(305)  评论(1编辑  收藏  举报
View Hao Wang's profile on LinkedIn