語言

SHA512.Create 方法

定義

允許實例化此抽象類別的特定實作。

多載

名稱 Description
Create()

建立 的 SHA512預設實作實例。

Create(String)
已淘汰.

建立指定實作 SHA512的實例。

Create()

來源:
SHA512.cs
來源:
SHA512.cs
來源:
SHA512.cs
來源:
SHA512.cs
來源:
SHA512.cs

建立 的 SHA512預設實作實例。

public:
 static System::Security::Cryptography::SHA512 ^ Create();
public static System.Security.Cryptography.SHA512 Create();
static member Create : unit -> System.Security.Cryptography.SHA512
Public Shared Function Create () As SHA512

傳回

一個新的實例。SHA512

例外狀況

該演算法在啟用聯邦資訊處理標準(FIPS)模式下使用,但不相容於FIPS。

另請參閱

適用於

Create(String)

來源:
SHA512.cs
來源:
SHA512.cs
來源:
SHA512.cs
來源:
SHA512.cs
來源:
SHA512.cs

警告

Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.

建立指定實作 SHA512的實例。

public:
 static System::Security::Cryptography::SHA512 ^ Create(System::String ^ hashName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.SHA512? Create(string hashName);
public static System.Security.Cryptography.SHA512? Create(string hashName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.SHA512? Create(string hashName);
public static System.Security.Cryptography.SHA512 Create(string hashName);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.SHA512
static member Create : string -> System.Security.Cryptography.SHA512
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
static member Create : string -> System.Security.Cryptography.SHA512
Public Shared Function Create (hashName As String) As SHA512

參數

hashName
String

具體實作 SHA512 名稱。

傳回

一個使用指定實作的新實例 SHA512 。

屬性

例外狀況

參數所描述 hashName 的演算法在啟用聯邦資訊處理標準(FIPS)模式下使用,但不相容於 FIPS。

備註

可能的 hashName 值包括 SHA512、System.Security.Cryptography.SHA512、System.Security.Cryptography.SHA512Managed,以及 System.Security.Cryptography.SHA512CryptoServiceProvider。

另請參閱

適用於