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 write-protect (not encrypt) the worksheet.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>  public int ProtectPasswordHash\{ get; set; \}
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net

<p>Public Property ProtectPasswordHash() As Integer</p>

Example
Code Block
csharp
csharp
titleC#
          

...

//--- Get ProtectPasswordHash
          int passwordHash = ws.ProtectPasswordHash;

          //--- Set ProtectPasswordHash
          ws.ProtectPasswordHash = 12345;
        
Code Block
vb.net
vb.net
titlevb.net
          

...

'--- Get ProtectPasswordHash
          Dim passwordHash = ws.ProtectPasswordHash

          '--- Set ProtectPasswordHash
          ws.ProtectPasswordHash = 12345