Restricts the query to return only items where the text in the content element or elements matches the specified
Namespace: FileNet.Api.Query
Assembly: FileNet.Api (in filenet.api.dll)
String
. This method uses the CONTAINS
function for CBR (Content-Based Retrieval) queries. The
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
containing the symbolic name of the class.String
- searchExpression
- A
containing the search text to use for theString
function.CONTAINS
Exceptions
Exception Type | Condition |
---|---|
EngineRuntimeException | Thrown when the parameter is or invalid. |