MD5.Create 方法

定義

允許建立這個抽象類別的指定實作。

多載

Create()

建立 MD5 雜湊演算法之預設實作的執行個體。

Create(String)
已淘汰.

建立 MD5 雜湊演算法之指定實作的執行個體。

Create()

來源:
MD5.cs
來源:
MD5.cs
來源:
MD5.cs

建立 MD5 雜湊演算法之預設實作的執行個體。

public:
 static System::Security::Cryptography::MD5 ^ Create();
public static System.Security.Cryptography.MD5 Create ();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.MD5 Create ();
static member Create : unit -> System.Security.Cryptography.MD5
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.MD5
Public Shared Function Create () As MD5

傳回

MD5

MD5 雜湊演算法的新執行個體。

屬性

例外狀況

在已啟用美國聯邦資訊處理標準 (FIPS) 模式的情況下使用演算法,但它與 FIPS 不相容。

另請參閱

適用於

Create(String)

來源:
MD5.cs
來源:
MD5.cs
來源:
MD5.cs

警告

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

建立 MD5 雜湊演算法之指定實作的執行個體。

public:
 static System::Security::Cryptography::MD5 ^ Create(System::String ^ algName);
public static System.Security.Cryptography.MD5? Create (string algName);
[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.MD5? Create (string algName);
public static System.Security.Cryptography.MD5 Create (string algName);
static member Create : string -> System.Security.Cryptography.MD5
[<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.MD5
Public Shared Function Create (algName As String) As MD5

參數

algName
String

要使用之 MD5 的特定實作的名稱。

傳回

MD5

指定之 MD5 實作的新執行個體。

屬性

例外狀況

algName 參數描述的演算法,在聯邦資訊處理標準 (FIPS) 模式啟用的情況下使用,但是和 FIPS 並不相容。

備註

algName 的可能值為:System.Security.Cryptography.MD5MD5System.Security.Cryptography.MD5CryptoServiceProviderSystem.Security.Cryptography.MD5Managed

另請參閱

適用於