PowerPoint.LabelingCapability enum
Hinweis
Diese API wird als Vorschau für Entwickler bereitgestellt. Je nachdem, welches Feedback wir dazu erhalten, werden möglicherweise Änderungen vorgenommen. Verwenden Sie diese API nicht in einer Produktionsumgebung.
Gibt die Bezeichnungsfunktion an.
Hinweise
API-Satz: PowerPointApi BETA (NUR VORSCHAU)
Verwendet von
Beispiele
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/preview-apis/manage-sensitivity-labels.yaml
await PowerPoint.run(async (context) => {
// Check whether sensitivity labeling is available for the current user.
const labelCatalog: PowerPoint.SensitivityLabelsCatalog = context.sensitivityLabelsCatalog;
if (!labelCatalog) {
console.warn("The sensitivity label catalog isn't available.");
return;
}
labelCatalog.load("getLabelingCapability");
await context.sync();
switch (labelCatalog.getLabelingCapability) {
case PowerPoint.LabelingCapability.labelingEnabled:
console.log("Sensitivity labeling is enabled.");
break;
case PowerPoint.LabelingCapability.labelingDisabled:
console.log("Sensitivity labeling is disabled.");
break;
case PowerPoint.LabelingCapability.labelingPolicyNotFound:
console.log("No sensitivity labeling policy was found.");
break;
case PowerPoint.LabelingCapability.noLicense:
console.log("The current user doesn't have a valid sensitivity labeling license.");
break;
default:
console.log(`Unknown labeling capability: ${labelCatalog.getLabelingCapability}`);
break;
}
});
Felder
| attributeBasedAccessControlEnabled = "AttributeBasedAccessControlEnabled" | Stellt die attributbasierte Zugriffssteuerung (ABAC) dar, die vom Host unterstützt wird. Bei der Rückgabe mit |
| labelingDisabled = "LabelingDisabled" | Stellt dar, dass die Bezeichnung deaktiviert ist. |
| labelingEnabled = "LabelingEnabled" | Stellt dar, dass die Bezeichnung aktiviert ist. |
| labelingPolicyNotFound = "LabelingPolicyNotFound" | Stellt eine Bezeichnungsrichtlinie dar, die nicht gefunden wurde. |
| noLicense = "NoLicense" | Gibt an, dass keine gültigen Lizenzen vorhanden sind. |