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

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

Replaces 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
)

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

Return Value

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

Reference