SymmetricAlgorithm.Create Метод

Определение

Создает криптографический объект, используемый для выполнения алгоритма симметричного шифрования.

Перегрузки

Create()
Устаревшие..
Устаревшие..

Создает криптографический объект по умолчанию, используемый для выполнения алгоритма симметричного шифрования.

Create(String)
Устаревшие..

Создает заданный криптографический объект, используемый для выполнения алгоритма симметричного шифрования.

Create()

Исходный код:
SymmetricAlgorithm.cs
Исходный код:
SymmetricAlgorithm.cs
Исходный код:
SymmetricAlgorithm.cs

Внимание!

The default implementation of this cryptography algorithm is not supported

Внимание!

The default implementation of this cryptography algorithm is not supported.

Создает криптографический объект по умолчанию, используемый для выполнения алгоритма симметричного шифрования.

public:
 static System::Security::Cryptography::SymmetricAlgorithm ^ Create();
[System.Obsolete("The default implementation of this cryptography algorithm is not supported", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.SymmetricAlgorithm Create ();
[System.Obsolete("The default implementation of this cryptography algorithm is not supported.", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.SymmetricAlgorithm Create ();
public static System.Security.Cryptography.SymmetricAlgorithm Create ();
[<System.Obsolete("The default implementation of this cryptography algorithm is not supported", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : unit -> System.Security.Cryptography.SymmetricAlgorithm
[<System.Obsolete("The default implementation of this cryptography algorithm is not supported.", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : unit -> System.Security.Cryptography.SymmetricAlgorithm
static member Create : unit -> System.Security.Cryptography.SymmetricAlgorithm
Public Shared Function Create () As SymmetricAlgorithm

Возвращаемое значение

Криптографический объект по умолчанию, используемый для выполнения симметричного алгоритма.

Атрибуты

Исключения

.NET Core 2.0 –3.1 и .NET 5 и более поздних версий: во всех случаях.

Комментарии

Этот метод устарел в .NET 5 и более поздних версиях.

Рекомендуется указать алгоритм, вызвав перегрузку Create(String) этого метода.

См. также раздел

Применяется к

Create(String)

Исходный код:
SymmetricAlgorithm.cs
Исходный код:
SymmetricAlgorithm.cs
Исходный код:
SymmetricAlgorithm.cs

Внимание!

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

Создает заданный криптографический объект, используемый для выполнения алгоритма симметричного шифрования.

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

Параметры

algName
String

Имя конкретной реализации класса SymmetricAlgorithm для использования.

Возвращаемое значение

Криптографический объект, используемый для выполнения симметричного алгоритма.

Атрибуты

См. также раздел

Применяется к