This documentation is archived and is not being maintained.

PrintServer.Commit Method

Commits any changes that your program made to the properties of the print server object by writing them to the print server that the object represents.

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

public override void Commit()

ExceptionCondition
PrintSystemException

Some of the properties are not committed.

PrintCommitAttributesException

Some of the properties could not be committed.

- or -

The PrintServer object was not created with sufficient rights. See Remarks.

The method requires that the PrintServer object be created with AdministrateServer rights.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: