共用方式為


QueryMalformedException Class

Represents the exception that is thrown when a search query is not formed correctly.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SharePoint.Search.Query.SearchQueryException
      Microsoft.SharePoint.Search.Query.QueryMalformedException

Namespace:  Microsoft.SharePoint.Search.Query
Assembly:  Microsoft.SharePoint.Search (in Microsoft.SharePoint.Search.dll)

Syntax

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

Remarks

This exception can occur if the query contains a syntax error or if a property name that is not valid is specified.

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

QueryMalformedException Members

Microsoft.SharePoint.Search.Query Namespace