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)

Syntax

Visual Basic (Declaration)
Function Republish( _ 
   ByVal publication As IDocument,  _ 
   ByVal publishOptions As String _ 
) As IPublishRequest
C#
IPublishRequest Republish(
   IDocument publication,
   string publishOptions
)
C++
IPublishRequest Republish(
   IDocument publication,
   String publishOptions
) abstract 
J#
IPublishRequest Republish(
   IDocument publication,
   string publishOptions
)
JScript
function Republish(
   publication : IDocument,
   publishOptions : String
) : IPublishRequest

Parameters

publication
The Document object to be republished.
publishOptions
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.

See Also