共用方式為


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.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.SharePoint.BusinessData.Runtime.FilterBase
      Microsoft.SharePoint.BusinessData.Runtime.UserInputFilter
        Microsoft.SharePoint.BusinessData.Runtime.ComparisonFilter
          Microsoft.SharePoint.BusinessData.Runtime.WildcardFilter

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

Syntax

'Declaration
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public NotInheritable Class WildcardFilter _
    Inherits ComparisonFilter
'Usage
Dim instance As WildcardFilter
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public sealed class WildcardFilter : ComparisonFilter

Remarks

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.

Thread Safety

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

See Also

Reference

WildcardFilter Members

Microsoft.SharePoint.BusinessData.Runtime Namespace