Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

Excerpt

Sets or returns the password hash that is used to protect the workbook.

Signature
C#
C#
public int ProtectPasswordHash{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property ProtectPasswordHash() As Integer
{signature}
{example}{code:csharp|title=C#}
Example
Code Block
csharp
csharp
titleC#
          
//--- Get the ProtectPasswordHash value for the workbook
          int passwordHash = wb.ProtectPasswordHash;

          //--- Set the ProtectPasswordHash value for the workbook
          wb.ProtectPasswordHash = 12345
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}
          
'--- Get the ProtectPasswordHash value for the workbook
          Dim passwordHash As Integer = wb.ProtectPasswordHash

          '--- Set the ProtectPasswordHash value for the workbook
          wb.ProtectPasswordHash = 12345
        
{code} {example}