Share via


PosCommon.FreezeEvents Property

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

Usage

'Usage
Dim posCommon1 As PosCommon

Dim returnValue As Boolean
returnValue = posCommon1.FreezeEvents

Dim sampleValue As Boolean
posCommon1.FreezeEvents = sampleValue

Syntax

'Declaration
Public MustOverride Property FreezeEvents() As Boolean
public abstract bool FreezeEvents {get; set;}
public: property virtual Boolean FreezeEvents{
    Boolean get();
    Void set(Boolean);
}
public abstract boolean get_FreezeEvents();
public abstract void set_FreezeEvents(boolean);
public abstract function get FreezeEvents() : Boolean;
public abstract function set FreezeEvents(Boolean);

Remarks

When set to TRUE, the application has requested that the service object not deliver events. Events will be queued by the service object but not delivered until the application changes FreezeEvents to FALSE. Exclusive-use devices must be opened and claimed before this property can be accessed. Shared devices must be opened before this property can be accessed.

When set to FALSE, the application allows events to be delivered. If some events have been held while events were frozen and all other conditions are correct for delivering the events, changing FreezeEvents to FALSE will allow these events to be delivered.

An application can choose to freeze events for a specific sequence of code where interruption by an event isn’t desirable.

FreezeEvents is initialized to FALSE. State verification takes place in the basic and base classes for each device.

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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace