Export (0) Print
Expand All

WildcardFilter class

Represents a filter that limits the instances returned to those such as a field named value, where value may contain the asterisk (*) wildcard character.

Namespace:  Microsoft.SharePoint.BusinessData.Runtime
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public sealed class WildcardFilter : ComparisonFilter

Users can use this filter type to present more user-friendly filters such as "starts with" and "contains". It also keeps the user from having to know what wildcard character the particular external system uses, and how to escape the wildcard itself for a particular external system. For example, SAP uses '*' as the wildcard, and to escape it, the sequence [*]. SQL uses '%' as the wildcard. It does this by providing a single '*' wildcard character and a single \* escape sequence that one would use to actually pass in a literal *. Metadata authors set the WildcardCharacterEscapeFormat and WildcardCharacter properties on the external system to map these to system-specific wildcard requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft