Republishes the specified published document. The specified published document must have been published with a publish template that still exists and had this Document object as its source document. This method returns the PublishRequest object that is queued for this request. All publish requests are asynchronous, including copy operations, which do not transform the document. A publish request is always enqueued, and a copy of the PublishRequest object is always returned to the caller.

The publishOptions parameter is a string containing XML that specifies the publish options for the republished document. See Publish Options XML for more information.

Namespace:  FileNet.Api.Core
Assembly:  FileNet.Api (in FileNet.Api.dll)

ToggleSyntax

Visual Basic (Declaration)
Function Republish ( _
	publication As IDocument, _
	publishOptions As String _
) As IPublishRequest
C#
IPublishRequest Republish(
	IDocument publication,
	string publishOptions
)
Visual C++
IPublishRequest^ Republish(
	IDocument^ publication, 
	String^ publishOptions
)
JavaScript
function republish(publication, publishOptions);

Parameters

publication
Type: FileNet.Api.Core..::.IDocument
The Document object to be republished.
publishOptions
Type: System..::.String
A String containing XML that specifies the publish options for the republished document. Can be null, in which case the values for the publication name, output folder, and eventaction are as specified in the associated publish template.

Return Value

The PublishRequest object that is queued for this request.

ToggleSee Also