ISensitivityLabelCollection

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable

public interface ISensitivityLabelCollection extends System.Collections.Generic.IGenericEnumerable<ISensitivityLabel>

Represents a collection of sensitivity labels applied to the document.

Methods

MethodDescription
get_Item(int index)Returns the sensitivity label by index.
add(String id, UUID siteId, boolean isEnabled, int methodType)Adds the sensitivity label at the end of the collection.
add(ISensitivityLabel label)Adds a SensitivityLabel to the collection.
removeAt(int index)Removes the sensitivity label at the specified index.
clear()Removes all elements from the collection.
getCount()Gets the number of all elements in the collection.

get_Item(int index)

public abstract ISensitivityLabel get_Item(int index)

Returns the sensitivity label by index. Read-only ISensitivityLabel.

Parameters:

ParameterTypeDescription
indexint

Returns: ISensitivityLabel

add(String id, UUID siteId, boolean isEnabled, int methodType)

public abstract ISensitivityLabel add(String id, UUID siteId, boolean isEnabled, int methodType)

Adds the sensitivity label at the end of the collection.

Parameters:

ParameterTypeDescription
idjava.lang.StringThe id of sensitivity label.
siteIdjava.util.UUIDThe Azure Active Directory (Azure AD) site identifier.
isEnabledbooleanFlag indicates whether the sensitivity label is enabled.
methodTypeintThe assignment method for the sensitivity label.

Returns: ISensitivityLabel

add(ISensitivityLabel label)

public abstract int add(ISensitivityLabel label)

Adds a SensitivityLabel to the collection.

Parameters:

ParameterTypeDescription
labelISensitivityLabelThe SensitivityLabel object to be added at the end of the collection.

Returns: int - The index at which the SensitivityLabel was added.

removeAt(int index)

public abstract void removeAt(int index)

Removes the sensitivity label at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of the sensitivity label that should be deleted.

clear()

public abstract void clear()

Removes all elements from the collection.

getCount()

public abstract int getCount()

Gets the number of all elements in the collection. Read-only int .

Returns: int