Edit

Share via


Search.Filter Property

Definition

Returns a String (string in C#) value that represents the DASL statement used to restrict the search to a specified subset of data. Read-only

public:
 property System::String ^ Filter { System::String ^ get(); };
public string Filter { get; }
Public ReadOnly Property Filter As String

Property Value

Remarks

This property is set as the Filter argument in the Application object's AdvancedSearch(String, Object, Object, Object) method.

When searching Text fields, you can use either an apostrophe (') or double quotation marks ("") to delimit the values that are part of the filter. For example, all of the following lines function correctly when the field is of type String (string in C#):

sFilter = "[CompanyName] = 'Microsoft'" sFilter = "[CompanyName] = 'Microsoft'"; sFilter = "[CompanyName] = ""Microsoft""" sFilter = "[CompanyName] = ""Microsoft"""; sFilter = "[CompanyName] = " & Chr(34) & "Microsoft" & Chr(34) sFilter = "[CompanyName] = " & Chr(34) & "Microsoft" & Chr(34);

Applies to