[]
Sets the protected password to modify the file.
public string WritePassword { set; }
Public WriteOnly Property WritePassword As String
WriteProtection protection = workbook.WriteProtection;
string password = GetPasswordFromSecureSource();
protection.WritePassword = password;
bool writeReserved = protection.WriteReserved;
bool passwordMatches = protection.ValidatePassword(password);