RsaSecurityKey.GetAsymmetricAlgorithm(String, Boolean) Methode

Definitie

Hiermee haalt u het opgegeven asymmetrische cryptografische algoritme op.

public:
 override System::Security::Cryptography::AsymmetricAlgorithm ^ GetAsymmetricAlgorithm(System::String ^ algorithm, bool requiresPrivateKey);
public override System.Security.Cryptography.AsymmetricAlgorithm GetAsymmetricAlgorithm(string algorithm, bool requiresPrivateKey);
override this.GetAsymmetricAlgorithm : string * bool -> System.Security.Cryptography.AsymmetricAlgorithm
Public Overrides Function GetAsymmetricAlgorithm (algorithm As String, requiresPrivateKey As Boolean) As AsymmetricAlgorithm

Parameters

algorithm
String

Het asymmetrische algoritme dat moet worden gemaakt.

requiresPrivateKey
Boolean

true wanneer een persoonlijke sleutel vereist is om het algoritme te maken; anders, false.

Retouren

Een AsymmetricAlgorithm die het opgegeven asymmetrische cryptografische algoritme vertegenwoordigt.

Uitzonderingen

requiresPrivateKey is true en een persoonlijke sleutel is niet beschikbaar.

Van toepassing op