संपादित करें

इसके माध्यम से साझा किया गया


DataProtector.Create(String, String, String, String[]) Method

Definition

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