Aspose::Cells::Vba::VbaProject::Protect method

VbaProject::Protect(bool, const U16String&) method

Protects or unprotects this VBA project.

void Aspose::Cells::Vba::VbaProject::Protect(bool islockedForViewing, const U16String &password)
ParameterTypeDescription
islockedForViewingboolindicates whether locks project for viewing.
passwordconst U16String&If the value is null, unprotects this VBA project, otherwise projects the this VBA project.

Remarks

If islockedForViewing is true, the password could not be null.

See Also

VbaProject::Protect(bool, const char16_t*) method

Protects or unprotects this VBA project.

void Aspose::Cells::Vba::VbaProject::Protect(bool islockedForViewing, const char16_t *password)
ParameterTypeDescription
islockedForViewingboolindicates whether locks project for viewing.
passwordconst char16_t*If the value is null, unprotects this VBA project, otherwise projects the this VBA project.

Remarks

If islockedForViewing is true, the password could not be null.

See Also