SensitivityLabel

SensitivityLabel class

Represents the sensitivity label.

class SensitivityLabel;

Methods

MethodDescription
getId()Gets and sets the id of sensitivity label.
setId(string)Gets and sets the id of sensitivity label.
isEnabled()Indicates whether the sensitivity label is enabled
setIsEnabled(boolean)Indicates whether the sensitivity label is enabled
getAssignmentType()Gets and sets the assignment method for the sensitivity label.
setAssignmentType(SensitivityLabelAssignmentType)Gets and sets the assignment method for the sensitivity label.
getSiteId()Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.
setSiteId(string)Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.
getContentMarkType()Gets and sets the types of content marking that ought to be applied to a file.
setContentMarkType(SensitivityLabelMarkType)Gets and sets the types of content marking that ought to be applied to a file.
isRemoved()Indicates whether the sensitivity label was removed.
setIsRemoved(boolean)Indicates whether the sensitivity label was removed.
isNull()Checks whether the implementation object is null.

getId()

Gets and sets the id of sensitivity label.

getId() : string;

setId(string)

Gets and sets the id of sensitivity label.

setId(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

isEnabled()

Indicates whether the sensitivity label is enabled

isEnabled() : boolean;

setIsEnabled(boolean)

Indicates whether the sensitivity label is enabled

setIsEnabled(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getAssignmentType()

Gets and sets the assignment method for the sensitivity label.

getAssignmentType() : SensitivityLabelAssignmentType;

Returns

SensitivityLabelAssignmentType

setAssignmentType(SensitivityLabelAssignmentType)

Gets and sets the assignment method for the sensitivity label.

setAssignmentType(value: SensitivityLabelAssignmentType) : void;

Parameters:

ParameterTypeDescription
valueSensitivityLabelAssignmentTypeThe value to set.

getSiteId()

Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.

getSiteId() : string;

setSiteId(string)

Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.

setSiteId(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getContentMarkType()

Gets and sets the types of content marking that ought to be applied to a file.

getContentMarkType() : SensitivityLabelMarkType;

Returns

SensitivityLabelMarkType

setContentMarkType(SensitivityLabelMarkType)

Gets and sets the types of content marking that ought to be applied to a file.

setContentMarkType(value: SensitivityLabelMarkType) : void;

Parameters:

ParameterTypeDescription
valueSensitivityLabelMarkTypeThe value to set.

isRemoved()

Indicates whether the sensitivity label was removed.

isRemoved() : boolean;

setIsRemoved(boolean)

Indicates whether the sensitivity label was removed.

setIsRemoved(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;