CertificateRequestProperties.KeyAlgorithmName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the public key algorithm.
public:
property Platform::String ^ KeyAlgorithmName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring KeyAlgorithmName();
void KeyAlgorithmName(winrt::hstring value);
public string KeyAlgorithmName { get; set; }
var string = certificateRequestProperties.keyAlgorithmName;
certificateRequestProperties.keyAlgorithmName = string;
Public Property KeyAlgorithmName As String
Property Value
Algorithm name.
Examples
public String GetSetPublicKeyAlgorithm(String strAlgNameIn)
{
// Create a new CertificateRequestProperties object.
CertificateRequestProperties reqProperties = new CertificateRequestProperties();
// The default value is RSA.
String strDefaultAlgName = reqProperties.KeyAlgorithmName;
// If the input option does not equal the default option, reset the property value.
if (strAlgNameIn != strDefaultAlgName)
{
reqProperties.KeyAlgorithmName = strAlgNameIn;
}
// Return the algorithm name.
return reqProperties.KeyAlgorithmName;
}
Remarks
The default value is "RSA". You can use properties on the KeyAlgorithmNames class to specify error-free names or to compare the name retrieved by this property with a known string.