Remove password parameter from workbook protect/unprotect (#9072)

It is not possible to use a password for protection/unprotection via the API.
This commit is contained in:
Michael Zlatkovsky 2016-05-05 09:47:25 -07:00 committed by Masahiro Wakame
parent b7e92198bb
commit ceb795ce89

View File

@ -1743,20 +1743,17 @@ declare namespace Excel {
* Protect a worksheet. It throws if the worksheet has been protected.
*
* @param options sheet protection options.
* @param password sheet protection password.
*
* [Api set: ExcelApi 1.2]
*/
protect(options?: Excel.WorksheetProtectionOptions, password?: string): void;
protect(options?: Excel.WorksheetProtectionOptions): void;
/**
*
* Unprotect a worksheet
*
* @param password sheet protection password.
*
* [Api set: ExcelApi 1.2]
*/
unprotect(password?: string): void;
unprotect(): void;
/**
* Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.
*/
@ -8566,7 +8563,6 @@ declare namespace Excel {
}
namespace ErrorCodes {
var accessDenied: string;
var badPassword: string;
var generalException: string;
var insertDeleteConflict: string;
var invalidArgument: string;