Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}Sets or returns the password hash that is used to write\-protect \(not encrypt\) the worksheet.{excerpt}
{signature:C#}
 public int ProtectPasswordHash{ get; set; }
{signature}{signature:vb.net}
Public Property ProtectPasswordHash() As Integer
{signature}
{example}{code:csharp|title=C#}

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

          //--- Set ProtectPasswordHash
          ws.ProtectPasswordHash = 12345;
        {code}
{code:vb.net|title=vb.net}

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

          '--- Set ProtectPasswordHash
          ws.ProtectPasswordHash = 12345
        {code}

{example}