Datalogic .NET SDK

GetSerialNumber (Method)

 

Syntax

 

   public static String GetSerialNumber();

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Returns the product serial number.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

void

-

-

 

 

 

 

[returns]

String

 

 

If the serial number is successfully retrieved, its value will be returned.

[on error]

System.String.Empty

 

-

 

 

 

Example

 

   private void SetUnitDisplay()

   {

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

             {"Serial Number",Device.GetSerialNumber().ToString() }));

   }

 

 

 

See Also

System.String, Example #022.

 

 

Copyright © Datalogic ADC. All Right Reserved