Partager via


MessageCertificateX509.Encrypt Method (Byte[], X509Certificate2[])

 

Encrypts data.

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

Syntax

public static byte[] Encrypt(
    byte[] data,
    X509Certificate2[] encryptionCertificates
)
public:
static array<unsigned char>^ Encrypt(
    array<unsigned char>^ data,
    array<X509Certificate2^>^ encryptionCertificates
)
Public Shared Function Encrypt (
    data As Byte(),
    encryptionCertificates As X509Certificate2()
) As Byte()

Parameters

Return Value

Type: System.Byte[]

Encrypted data.

See Also

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

Return to top