CreateEncryptor(X509Certificate2) Method
See Also 
SourceCode.Security.Cryptography Namespace > AsymmetricProtector Class > CreateEncryptor Method : CreateEncryptor(X509Certificate2) Method



certificate

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function CreateEncryptor( _
   ByVal certificate As X509Certificate2 _
) As IAsymmetricEncryptor
Visual Basic (Usage) Copy Code
Dim certificate As X509Certificate2
Dim value As IAsymmetricEncryptor
 
value = AsymmetricProtector.CreateEncryptor(certificate)
C#  
public static IAsymmetricEncryptor CreateEncryptor( 
   X509Certificate2 certificate
)
C++/CLI  
public:
static IAsymmetricEncryptor^ CreateEncryptor( 
   X509Certificate2^ certificate
) 

Parameters

certificate

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