Share via


PrintOperation Class

2/27/2008

The abstract class definition from which all other <PrintMethodName>Operation classes are derived.

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

Syntax

'Declaration
Public MustInherit Class PrintOperation
public abstract class PrintOperation
public ref class PrintOperation abstract
public abstract class PrintOperation
public abstract class PrintOperation

Remarks

The PrintOperation helper class is used as the abstract class definition from which all other <PrintMethodName>Operation classes are derived. The PosPrinterBase class uses these derived classes to store state information about specific print operations requested by an application. For example, when the application sets printer properties and then calls a print method such as PrintNormal, the PosPrinterBase class creates an instance of the PrintNormalOperation class, which derives from PrintOperation, to store the information associated with the application’s request. This information is used later by the service object to complete the PrintNormal request.

Each of the properties in the PrintOperation class are inherited by the <PrintMethodName>Operation classes. Information such as the rotation mode, the state of the printer properties at the time of the print method call, and the type of processing—synchronous or asynchronous—is defined herein. Information specific to the application’s method call, such as parameter values, is defined in the derived class for that method call.

Inheritance Hierarchy

System.Object
  Microsoft.PointOfService.BaseServiceObjects.PrintOperation
     Derived Classes

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

PrintOperation Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosPrinterBase Class