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)

Syntax

Visual Basic (Declaration)
Public Overridable Sub SetContainsRestriction( _ 
   ByVal symbolicClassName As String,  _ 
   ByVal searchExpression As String _ 
)
C#
public virtual void SetContainsRestriction(
   string symbolicClassName,
   string searchExpression
)
C++
public:
 virtual void SetContainsRestriction(
   String symbolicClassName,
   String searchExpression
)
J#
public virtual void SetContainsRestriction(
   string symbolicClassName,
   string searchExpression
)
JScript
public virtual  function SetContainsRestriction(
   symbolicClassName : String,
   searchExpression : String
)

Parameters

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

Exceptions

Exception TypeCondition
EngineRuntimeException Thrown when the parameter is Null or invalid.

See Also