TripleDESCng Constructors
Definition
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.
Initializes a new instance of the TripleDESCng class.
Overloads
TripleDESCng() |
Initializes a new instance of the TripleDESCng class with an ephemeral key. |
TripleDESCng(String) |
Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key. |
TripleDESCng(String, CngProvider) |
Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key, and the specified key storage provider (KSP). |
TripleDESCng(String, CngProvider, CngKeyOpenOptions) |
Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key, the specified key storage provider (KSP) and key open options. |
TripleDESCng()
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Initializes a new instance of the TripleDESCng class with an ephemeral key.
public:
TripleDESCng();
public TripleDESCng ();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public TripleDESCng ();
Public Sub New ()
- Attributes
Applies to
TripleDESCng(String)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key.
public:
TripleDESCng(System::String ^ keyName);
public TripleDESCng (string keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public TripleDESCng (string keyName);
new System.Security.Cryptography.TripleDESCng : string -> System.Security.Cryptography.TripleDESCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.TripleDESCng : string -> System.Security.Cryptography.TripleDESCng
Public Sub New (keyName As String)
Parameters
- keyName
- String
The name of the key.
- Attributes
Exceptions
keyName
is null
.
Cryptography Next Generation (CNG) is not supported on this system.
All other errors.
Remarks
This constructor uses a default CngKeyOpenOptions value of None and MicrosoftSoftwareKeyStorageProvider as the default key storage provider (KSP) to open the key.
See also
Applies to
TripleDESCng(String, CngProvider)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key, and the specified key storage provider (KSP).
public:
TripleDESCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider);
public TripleDESCng (string keyName, System.Security.Cryptography.CngProvider provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public TripleDESCng (string keyName, System.Security.Cryptography.CngProvider provider);
new System.Security.Cryptography.TripleDESCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.TripleDESCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.TripleDESCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.TripleDESCng
Public Sub New (keyName As String, provider As CngProvider)
Parameters
- keyName
- String
The name of the key.
- provider
- CngProvider
The KSP that contains the key.
- Attributes
Exceptions
Cryptography Next Generation (CNG) is not supported on this system.
All other errors.
Remarks
A default CngKeyOpenOptions value of None is used to open the key.
See also
Applies to
TripleDESCng(String, CngProvider, CngKeyOpenOptions)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key, the specified key storage provider (KSP) and key open options.
public:
TripleDESCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider, System::Security::Cryptography::CngKeyOpenOptions openOptions);
public TripleDESCng (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public TripleDESCng (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
new System.Security.Cryptography.TripleDESCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.TripleDESCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.TripleDESCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.TripleDESCng
Public Sub New (keyName As String, provider As CngProvider, openOptions As CngKeyOpenOptions)
Parameters
- keyName
- String
The name of the key.
- provider
- CngProvider
The KSP that contains the key.
- openOptions
- CngKeyOpenOptions
A bitwise combination of the enumeration values that specify options for opening the key, such as where the key is opened from (machine or user storage) and whether to suppress UI prompting.
- Attributes
Exceptions
Cryptography Next Generation (CNG) is not supported on this system.
All other errors.
See also
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor