Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / Workbook Class / Unprotect Method

The password that will be used to unprotect the protected Workbook. This password must be the same as the one set when the Protect method was used.

Note, however, that this parameter does not require a value if the Workbook was protected without using a password. The default value for the parameter is, in fact, null, which allows to unprotect a Workbook without the use of a password when no password was set when the Protect method was used.

 



In This Topic
    Unprotect Method (Workbook)
    In This Topic
    Removes the protection that was added on the Workbook.
    Syntax
    'Declaration
     
    
    Public Sub Unprotect( _
       Optional ByVal password As String _
    ) 
    'Usage
     
    
    Dim instance As Workbook
    Dim password As String
     
    instance.Unprotect(password)
    public void Unprotect( 
       string password
    )

    Parameters

    password

    The password that will be used to unprotect the protected Workbook. This password must be the same as the one set when the Protect method was used.

    Note, however, that this parameter does not require a value if the Workbook was protected without using a password. The default value for the parameter is, in fact, null, which allows to unprotect a Workbook without the use of a password when no password was set when the Protect method was used.

     

    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also