Datalogic .NET SDK

GetFriendlyName (Method)

 

Syntax

 

   public string GetFriendlyName();

 

 

Class                           : DecodeHandle

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

This gets the user friendly name associated with a decoding device.

 

Parameters Table

 

Type

Parameter

Description

[in]

void

 

-

[return]

string

 

If the friendly name is successfully retrieved, its value will be returned. Otherwise System.String.Empty will be returned.

[on error]

System.String.Empty

 

 

 

 

Example

 

        private void btnFriendlyName_Click(object sender, EventArgs e)

        {

            string FriendlyName = System.String.Empty;

            // hDcd = new DecodeHandle(...); Global instance of DecodeHandle class

            // Get Name and put into a textbox. It should write "Internal Laser".

            FriendlyName = hDcd.GetFriendlyName();

 

            txtFriendlyName.Text = FriendlyName;

        }

 

 

 

See Also

System.String.Empty, Example #003.

 

Copyright © Datalogic ADC. All Right Reserved