Export (0) Print
Expand All

PackageDigitalSignatureManager.HashAlgorithm Property

Gets or sets the URI identifier for the HashAlgorithm instance used to create and verify signatures.

Namespace: System.IO.Packaging
Assembly: WindowsBase (in windowsbase.dll)

public string HashAlgorithm { get; set; }
/** @property */
public String get_HashAlgorithm ()

/** @property */
public void set_HashAlgorithm (String value)

public function get HashAlgorithm () : String

public function set HashAlgorithm (value : String)

You cannot use this property in XAML.

Property Value

The SignedXml URI identifier for the HashAlgorithm instance used to create and verify signatures.

Exception typeCondition

ArgumentNullException

The string for the URI to set is a null reference (Nothing in Visual Basic).

ArgumentException

The string for the URI to set is empty.

The default hash algorithm identifier for the standard digital signature manager is XmlDsigSHA1Url (SHA1—Secure Hash Algorithm version 1.0).

Unless explicitly set otherwise, this property gets the same value as DefaultHashAlgorithm.

The HashAlgorithm property is typically not changed from its default. This property must be changed only if a signature that uses a different known and accessible HashAlgorithm is encountered. When finished with the signature that uses a different hash algorithm, call DefaultHashAlgorithm to reset the HashAlgorithm property back to default.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft