DocumentUnprotect Method (String) |
Removes protection from the document if a correct password is specified.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic bool Unprotect(
string password
)
Public Function Unprotect (
password As String
) As Boolean
public:
bool Unprotect(
String^ password
)
member Unprotect :
password : string -> bool
Parameters
- password
- Type: SystemString
The password to unprotect the document with.
Return Value
Type:
BooleanTrue if a correct password was specified and the document was unprotected.
RemarksThis method unprotects the document only if a correct password is specified.
Note that document protection is different from write protection.
Write protection is specified using the WriteProtection.
ExamplesShows how to unprotect a document using a password.
doc.Unprotect("password");
See Also