Share via


ToneIndicator.Tone2Pitch Property

2/27/2008

Gets or sets the pitch or frequency of the second tone in Hertz.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride Property Tone2Pitch As Integer
public abstract int Tone2Pitch { get; set; }
public:
virtual property int Tone2Pitch {
    int get () abstract;
    void set (int value) abstract;
}
/** @property */
public abstract int get_Tone2Pitch ()

/** @property */
public abstract void set_Tone2Pitch (int value)
public abstract function get Tone2Pitch () : int

public abstract function set Tone2Pitch (value : int)

Remarks

A value of zero or less produces no tone.

If the device does not support user-defined pitch (if the CapPitch property is false), any value greater than zero causes the Tone Indicator to use its default value.

Tone2Pitch is set and kept current by the Service Object while the device is enabled.

Accessing Tone2Pitch can throw general exceptions and a PosControlException exception. In this case, the PostControlException.ErrorCode property can be set to the following value:

Value

Meaning

Illegal

The specified value is not valid.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

ToneIndicator Class
ToneIndicator Members
Microsoft.PointOfService Namespace