Restricts the query to return only items where the text in the content element or elements matches the specified String. This method uses the CONTAINS function for CBR (Content-Based Retrieval) queries.

The CONTAINS function can perform the search on CBR-enabled properties for the supported content elements in any of the following ways:

  • Search a single property.
  • Search all properties within a specified zone.
  • Search all properties.

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

ToggleSyntax

Visual Basic (Declaration)
Public Overridable Sub SetContainsRestriction ( _
	symbolicClassName As String, _
	searchExpression As String _
)
C#
public virtual void SetContainsRestriction(
	string symbolicClassName,
	string searchExpression
)
Visual C++
public:
virtual void SetContainsRestriction(
	String^ symbolicClassName, 
	String^ searchExpression
)
JavaScript
function setContainsRestriction(symbolicClassName, searchExpression);

Parameters

symbolicClassName
Type: System..::.String
A String containing the symbolic name of the class.
searchExpression
Type: System..::.String
A String containing the search text to use for the CONTAINS function.

ToggleExceptions

ExceptionCondition
FileNet.Api.Exception..::.EngineRuntimeException Thrown when the parameter is Null or invalid.

ToggleSee Also