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.

対称アルゴリズムを実行するために使用する既定の暗号オブジェクトを作成します。

C#
[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();
C#
[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();
C#
public static System.Security.Cryptography.SymmetricAlgorithm Create();

戻り値

対称アルゴリズムを実行するために使用する既定の暗号オブジェクト。

属性

例外

.NET Core 2.0 - 3.1 および .NET 5 以降: すべての場合。

注釈

このメソッドは、.NET 5 以降のバージョンでは廃止されています。

このメソッドのオーバーロードを呼び出して、アルゴリズムを Create(String) 指定することをお勧めします。

こちらもご覧ください

適用対象

.NET 9 およびその他のバージョン
製品 バージョン (廃止)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1 (5, 6, 7, 8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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.

対称アルゴリズムを実行するために使用する指定された暗号オブジェクトを作成します。

C#
public static System.Security.Cryptography.SymmetricAlgorithm? Create(string algName);
C#
[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);
C#
public static System.Security.Cryptography.SymmetricAlgorithm Create(string algName);

パラメーター

algName
String

使用する SymmetricAlgorithm クラスの特定の実装の名前。

戻り値

対称アルゴリズムを実行するために使用する暗号オブジェクト。

属性

こちらもご覧ください

適用対象

.NET 9 およびその他のバージョン
製品 バージョン (廃止)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (7, 8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1