{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}