CertificateRequestProperties.HashAlgorithmName 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 hash algorithm used when creating the certificate request signature.
public:
property Platform::String ^ HashAlgorithmName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring HashAlgorithmName();
void HashAlgorithmName(winrt::hstring value);
public string HashAlgorithmName { get; set; }
var string = certificateRequestProperties.hashAlgorithmName;
certificateRequestProperties.hashAlgorithmName = string;
Public Property HashAlgorithmName As String
Property Value
Hash algorithm.
Examples
public String GetSetHashAlgorithm(String strAlgNameIn)
{
// Create a new CertificateRequestProperties object.
CertificateRequestProperties reqProperties = new CertificateRequestProperties();
// The default value is SHA256.
String strDefaultAlgName = reqProperties.HashAlgorithmName;
// If the input option does not equal the default option, reset the property value.
if (strAlgNameIn != strDefaultAlgName)
{
reqProperties.HashAlgorithmName = strAlgNameIn;
}
// Return the algorithm name.
return reqProperties.HashAlgorithmName;
}
Remarks
The default value is SHA256.