Contents

SKIndexGetDocumentID(_:_:)

Gets the ID of a document URL object (of type Skdocument) in an index.

Declaration

func SKIndexGetDocumentID(_ inIndex: SKIndex!, _ inDocument: SKDocument!) -> SKDocumentID

Parameters

  • inIndex:

    The index containing the text of the document whose document URL object ID you want.

  • inDocument:

    The document URL object whose ID you want.

Return Value

A document ID object.

Discussion

The document ID identifies a document URL object (of type SKDocument) in an index. The ID is available as soon as you add a document URL object to an index using SKIndexAddDocumentWithText(_:_:_:_:) or SKIndexAddDocument(_:_:_:_:).

See Also

Working with Documents and Terms