Edytuj

Udostępnij za pośrednictwem


CSSearchQueryErrorCode Enum

Definition

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

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum CSSearchQueryErrorCode
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