CertificateRequestProperties.HashAlgorithmName Свойство
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает или задает хэш-алгоритм, используемый при создании подписи запроса сертификата.
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
Хэш-алгоритм.
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;
}
Значение по умолчанию — SHA256.
Продукт | Версии |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |