Share via


CSSearchQueryErrorCode Enum

Definition

Enumerates errors that can occur while running a Core Spotlight query with Start().

[ObjCRuntime.Native]
public enum CSSearchQueryErrorCode
[<ObjCRuntime.Native>]
type CSSearchQueryErrorCode = 
Inheritance
CSSearchQueryErrorCode
Attributes

Fields

Name Value Description
Cancelled -2003

Indicates that the search was canceled.

InvalidQuery -2002

Indicates that the query was invalid.

IndexUnreachable -2001

Indicates that the search index could not be reached.

Unknown -2000

Indicates that an unknown error ocurred.

Remarks

Developers can use the GetDomain(CSSearchQueryErrorCode) extension method to get the error domain.

Applies to