Office.AsyncResultStatus enum

Gibt das Ergebnis eines asynchronen Aufrufs an.

Hinweise

Wird von der status -Eigenschaft des AsyncResult-Objekts zurückgegeben.

Beispiele

// The following example logs selected text in a document to the console.
Office.context.document.getSelectedDataAsync(
    Office.CoercionType.Text,
    {
        valueFormat: Office.ValueFormat.Unformatted,
        filterType: Office.FilterType.All
    },
    (result) => {
        if (result.status === Office.AsyncResultStatus.Failed) {
            console.log(result.error.message);
            return;
        }

        console.log(`Selected data: ${result.value}`);
    }
);

Felder

Failed

Fehler beim Aufruf. Überprüfen Sie das Fehlerobjekt.

Succeeded

Der Aufruf war erfolgreich.