C# 如何获取设备名称?

C# 如何获取设备名称?,c#,visual-studio,windows-ce,smart-device,C#,Visual Studio,Windows Ce,Smart Device,我正在为霍尼韦尔海豚6100开发一个应用程序,这是一台带有条形码扫描仪的移动计算机,使用类似WindowsCE5.0的操作系统 我想使用代码行获取设备名称 有人对此有想法吗 注意:我正在使用win7上的C#与VS2008合作。我们为同一台设备开发了一个应用程序,我们使用这句话来获取设备名称 Private Sub deviceidt_ParentChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

我正在为霍尼韦尔海豚6100开发一个应用程序,这是一台带有条形码扫描仪的移动计算机,使用类似WindowsCE5.0的操作系统

我想使用代码行获取设备名称

有人对此有想法吗


注意:我正在使用win7上的C#与VS2008合作。

我们为同一台设备开发了一个应用程序,我们使用这句话来获取设备名称

Private Sub deviceidt_ParentChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles deviceidt.ParentChanged
        Dim deviceidn As String = System.Net.Dns.GetHostName
        deviceidt.Text = deviceidn
        End If
    End Sub

这个设备是通过USB连接的吗?试试这个:你可能还想查看产品页面。有一个SDK可用:
Private Sub deviceidt_ParentChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles deviceidt.ParentChanged
        Dim deviceidn As String = System.Net.Dns.GetHostName
        deviceidt.Text = deviceidn
        End If
    End Sub