SymmetricAlgorithm.Create Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Создает криптографический объект, используемый для выполнения симметричного алгоритма.
Перегрузки
| Имя | Описание |
|---|---|
| Create() |
Устаревшие.
Устаревшие.
Создает криптографический объект по умолчанию, используемый для выполнения симметричного алгоритма. |
| Create(String) |
Устаревшие.
Создает указанный криптографический объект, используемый для выполнения симметричного алгоритма. |
Create()
- Исходный код:
- SymmetricAlgorithm.cs
- Исходный код:
- SymmetricAlgorithm.cs
- Исходный код:
- 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
- Исходный код:
- 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);
[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.SymmetricAlgorithm? Create(string algName);
public static System.Security.Cryptography.SymmetricAlgorithm? Create(string algName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.SymmetricAlgorithm? Create(string algName);
public static System.Security.Cryptography.SymmetricAlgorithm Create(string algName);
[<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.SymmetricAlgorithm
static member Create : string -> System.Security.Cryptography.SymmetricAlgorithm
[<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.SymmetricAlgorithm
Public Shared Function Create (algName As String) As SymmetricAlgorithm
Параметры
- algName
- String
Имя конкретной реализации класса, используемого SymmetricAlgorithm .
Возвращаемое значение
Криптографический объект, используемый для выполнения симметричного алгоритма.
- Атрибуты