DataProtector.Create(String, String, String, String[]) 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 an instance of a data protector implementation by using the specified class name of the data protector, the application name, the primary purpose, and the specific purposes.
public:
static System::Security::Cryptography::DataProtector ^ Create(System::String ^ providerClass, System::String ^ applicationName, System::String ^ primaryPurpose, ... cli::array <System::String ^> ^ specificPurposes);
public static System.Security.Cryptography.DataProtector Create(string providerClass, string applicationName, string primaryPurpose, params string[] specificPurposes);
static member Create : string * string * string * string[] -> System.Security.Cryptography.DataProtector
Public Shared Function Create (providerClass As String, applicationName As String, primaryPurpose As String, ParamArray specificPurposes As String()) As DataProtector
- providerClass
- String
The class name for the data protector.
- applicationName
- String
The name of the application.
- primaryPurpose
- String
The primary purpose for the protected data.
- specificPurposes
- String[]
The specific purposes for the protected data.
A data protector implementation object.
providerClass
is null
.
Produkt | Verzie |
---|---|
.NET Framework | 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 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: