Add

Add(string, Guid, bool, SensitivityLabelAssignmentType)

Adds the sensitivity label at the end of the collection.

public ISensitivityLabel Add(string id, Guid siteId, bool isEnabled, 
    SensitivityLabelAssignmentType methodType)
ParameterTypeDescription
idStringThe id of sensitivity label.
siteIdGuidThe Azure Active Directory (Azure AD) site identifier.
isEnabledBooleanFlag indicates whether the sensitivity label is enabled.
methodTypeSensitivityLabelAssignmentTypeThe assignment method for the sensitivity label.

See Also


Add(ISensitivityLabel)

Adds a SensitivityLabel to the collection.

public int Add(ISensitivityLabel label)
ParameterTypeDescription
labelISensitivityLabelThe SensitivityLabel object to be added at the end of the collection.

Return Value

The index at which the SensitivityLabel was added.

Exceptions

exceptioncondition
ArgumentExceptionThrown when the sensitivity label with the same Id has already been added.

See Also