DocumentSyncronizerPreviewSearchAndReplaceFile Method (ConnectionId, SessionId, DocumentId, String, String, Boolean, Boolean, String, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Preview replace in content, header properties, introduction, menu data, menu url. using regular expression.

Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public bool PreviewSearchAndReplaceFile(
	ConnectionId connectionId,
	SessionId sessionId,
	DocumentId documentId,
	string[] patterns,
	string[] replaceValues,
	bool replaceInAllContent,
	bool ignoreCase,
	ref string contentBefore,
	ref string contentAfter
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
documentId
Type: ContentStudio.DocumentDocumentId
The id of the document that should be search and replaced.
patterns
Type: SystemString
Patterns to use for replace
replaceValues
Type: SystemString
Values for replace
replaceInAllContent
Type: SystemBoolean
If set to true all revisions will be replace otherwise only approved content and draft will be searched and replaced.
ignoreCase
Type: SystemBoolean
Makes an case insensitive search
contentBefore
Type: SystemString
Preview content before the replace is done.
contentAfter
Type: SystemString
Preview content after the replace is done.

Return Value

Type: Boolean
true if any match was found, false otherwise.
See Also

Reference