SHA256.Create Yöntem

Tanım

Bu soyut sınıfın belirli uygulamalarının örneğini oluşturmasına izin verir.

Aşırı Yüklemeler

Create()

varsayılan uygulamasının bir örneğini SHA256oluşturur.

Create(String)
Geçersiz.

Belirtilen uygulamasının bir örneğini SHA256oluşturur.

Create()

Kaynak:
SHA256.cs
Kaynak:
SHA256.cs
Kaynak:
SHA256.cs

varsayılan uygulamasının bir örneğini SHA256oluşturur.

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

Döndürülenler

Yeni bir SHA256 örneği. .NET Framework'te bu yöntem, FIPS modu etkin değilse sınıfının bir örneğini SHA256Managed oluşturur; FIPS modu etkinse sınıfının bir örneğini SHA256Cng oluşturur. .NET Core'da, öğesinden SHA256türetilen bir özel sınıfın örneğini döndürür.

Özel durumlar

Yalnızca .NET Framework 4.6.1 ve önceki sürümlerde: Algoritma Federal Bilgi İşleme Standartları (FIPS) modu etkinken kullanılmıştır, ancak FIPS uyumlu değildir.

Ayrıca bkz.

Şunlara uygulanır

Create(String)

Kaynak:
SHA256.cs
Kaynak:
SHA256.cs
Kaynak:
SHA256.cs

Dikkat

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

Belirtilen uygulamasının bir örneğini SHA256oluşturur.

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

Parametreler

hashName
String

Kullanılacak belirli uygulamasının SHA256 adı.

Döndürülenler

Belirtilen uygulamayı kullanmanın yeni bir örneği SHA256 .

Öznitelikler

Özel durumlar

Yalnızca .NET Framework'te: FIPS modu etkindir, ancak hashName istekleri SHA256ManagedFIPS uyumlu değildir.

Açıklamalar

.NET Framework, uygulamaları ve bunların ilişkili hashName değerlerini içerir:

Uygulama Hashname
SHA256Managed SHA256
SHA-256
System.Security.Cryptography.SHA256
SHA256Cng System.Security.Cryptography.SHA256Cng
SHA256CryptoServiceProvider System.Security.Cryptography.SHA256CryptoServiceProvider

Ayrıca bkz.

Şunlara uygulanır