'Declaration
Public Shared Function Encrypt( _ ByVal certificate As X509Certificate2, _ ByVal securityPolicyUri As String, _ ByVal plainText() As Byte _ ) As EncryptedData
'Usage
Dim certificate As X509Certificate2 Dim securityPolicyUri As String Dim plainText() As Byte Dim value As EncryptedData value = SecurityPolicies.Encrypt(certificate, securityPolicyUri, plainText)
public static EncryptedData Encrypt( X509Certificate2 certificate, string securityPolicyUri, byte[] plainText )
public: static EncryptedData^ Encrypt( X509Certificate2^ certificate, String^ securityPolicyUri, array<byte>^ plainText )
Parameters
- certificate
- securityPolicyUri
- plainText