SymmetricAlgorithm.Create Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a cryptographic object used to perform the symmetric algorithm.
Create() |
Obsolete.
Obsolete.
Creates a default cryptographic object used to perform the symmetric algorithm. |
Create(String) |
Obsolete.
Creates the specified cryptographic object used to perform the symmetric algorithm. |
- Source:
- SymmetricAlgorithm.cs
- Source:
- SymmetricAlgorithm.cs
- Source:
- SymmetricAlgorithm.cs
Caution
The default implementation of this cryptography algorithm is not supported
Caution
The default implementation of this cryptography algorithm is not supported.
Creates a default cryptographic object used to perform the symmetric algorithm.
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
Returns
A default cryptographic object used to perform the symmetric algorithm.
- Attributes
Exceptions
.NET Core 2.0 - 3.1 and .NET 5 and later: In all cases.
Remarks
This method is obsolete in .NET 5 and later versions.
We recommend that you specify the algorithm by calling the Create(String) overload of this method.
See also
Applies to
.NET 9 en andere versies
Product | Versies (Verouderd) |
---|---|
.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 |
- Source:
- SymmetricAlgorithm.cs
- Source:
- SymmetricAlgorithm.cs
- Source:
- SymmetricAlgorithm.cs
Caution
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
Creates the specified cryptographic object used to perform the symmetric algorithm.
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
Parameters
- algName
- String
The name of the specific implementation of the SymmetricAlgorithm class to use.
Returns
A cryptographic object used to perform the symmetric algorithm.
- Attributes
See also
Applies to
.NET 9 en andere versies
Product | Versies (Verouderd) |
---|---|
.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 |
.NET-feedback
.NET is een open source project. Selecteer een koppeling om feedback te geven: