This documentation is archived and is not being maintained.

PrintSystemObject::Commit Method

When overridden in a derived class, writes any changes that your program has made to the object's properties to the actual software or hardware component that the object represents.

Namespace:  System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public:
virtual void Commit() abstract

For example, when overridden by the PrintServer class, Commit will write changes that are made to the PrintServer object's properties to the actual computer that the object represents.

The following example shows how to use this method (called on a PrintQueue object, which overrides the method from PrintSystemObject) as part of the process of merging print tickets.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: