Edit

Share via


IFileHandler.DeleteLabel(LabelingOptions) Method

Definition

Deletes the sensitivity label from the file.

public void DeleteLabel (Microsoft.InformationProtection.File.LabelingOptions labelingOptions);
abstract member DeleteLabel : Microsoft.InformationProtection.File.LabelingOptions -> unit
Public Sub DeleteLabel (labelingOptions As LabelingOptions)

Parameters

labelingOptions
LabelingOptions

Remarks

Changes will not be written to the file until CommitAsync will be called.

Will throw a JustificationRequiredError when setting the label requires the operation to be justified (via the labelingOptions parameter).

Applies to