System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / Message Class / HashAlgorithm Property



In This Topic
    HashAlgorithm Property (Message)
    In This Topic
    Gets or sets the hashing algorithm that Message Queuing uses when authenticating a message or creating a digital signature for a message.
    Syntax
    'Declaration
     
    
    Public Property HashAlgorithm As HashAlgorithm
    'Usage
     
    
    Dim instance As Message
    Dim value As HashAlgorithm
     
    instance.HashAlgorithm = value
     
    value = instance.HashAlgorithm
    public HashAlgorithm HashAlgorithm {get; set;}
    public:
    property HashAlgorithm HashAlgorithm {
       HashAlgorithm get();
       void set (    HashAlgorithm value);
    }

    Property Value

    One of the HashAlgorithm enumeration values. For Windows XP, the default is SHA. Otherwise, the default is MD5.
    Exceptions
    ExceptionDescription
    The message queue is filtered to ignore the HashAlgorithm property.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also