DataProtector.Create(String, String, String, String[]) Method
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.
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
Parameters
- 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.
Returns
A data protector implementation object.
Exceptions
providerClass
is null
.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.