Partager via


MessageCertificateX509.Sign Method (Byte[], String)

 

Signs data by using a certificate.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

public byte[] Sign(
    byte[] data,
    string hashAlgorithmName
)
public:
array<unsigned char>^ Sign(
    array<unsigned char>^ data,
    String^ hashAlgorithmName
)
Public Function Sign (
    data As Byte(),
    hashAlgorithmName As String
) As Byte()

Parameters

  • hashAlgorithmName
    Type: System.String

    Hash algorithm to use for signing.

Return Value

Type: System.Byte[]

The data signature.

See Also

Sign Overload
MessageCertificateX509 Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top