Datalogic .NET SDK

GetOSType (Method)

 

Syntax

 

   [Obsolete("Use GetOSType2 instead")]

   public static OperatingSystem GetOSType();

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Gets the OS type running on the device.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

void

-

-

 

 

 

 

[returns]

OperatingSystem

 

The OS type. See the Device.OperatingSystem enumeration for return values.

[on error]

-1

 

OperatingSystem.Error

 

 

Example

 

      private void btnGetHwInfo_Click(object sender, EventArgs e)

      {

          /* Get Device.GetOSType() and show it into a listView control */

          listView1.Items.Add(new ListViewItem(new string[]

                                  { "OS Type:", Device.GetOSType().ToString()}));

       }

 

 

 

Remarks

This method is marked as Obsolete and will not be supported in the future releases.

 

 

See Also

Device.OperatingSystem (Enum), Device.OSType (Enum), Device.GetOSType2 (Method), Example #025.

 

Copyright © Datalogic ADC. All Right Reserved