共用方式為


DataProtectionProvider.Create 方法

定義

多載

Create(DirectoryInfo)

DataProtectionProvider建立指定位置來儲存金鑰。

Create(String)

DataProtectionProvider根據平臺和作業系統,建立將金鑰儲存在位置的 。

Create(DirectoryInfo, Action<IDataProtectionBuilder>)

DataProtectionProvider建立指定位置以儲存金鑰和選擇性組態回呼。

Create(DirectoryInfo, X509Certificate2)

DataProtectionProvider建立指定的位置,用來儲存金鑰和 X509Certificate2 用來加密金鑰的位置。

Create(String, X509Certificate2)

DataProtectionProvider根據平臺和作業系統,建立將金鑰儲存在位置的 ,並使用指定的 X509Certificate2 來加密金鑰。

Create(DirectoryInfo, Action<IDataProtectionBuilder>, X509Certificate2)

DataProtectionProvider建立用來儲存金鑰的位置、選擇性組態回呼,以及 X509Certificate2 用來加密金鑰的位置。

Create(DirectoryInfo)

來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs

DataProtectionProvider建立指定位置來儲存金鑰。

public:
 static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory);
static member Create : System.IO.DirectoryInfo -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo) As IDataProtectionProvider

參數

keyDirectory
DirectoryInfo

DirectoryInfo 儲存金鑰的 。 這可能代表本機磁片或 UNC 共用上的目錄。

傳回

適用於

Create(String)

來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs

DataProtectionProvider根據平臺和作業系統,建立將金鑰儲存在位置的 。

public:
 static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::String ^ applicationName);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (string applicationName);
static member Create : string -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (applicationName As String) As IDataProtectionProvider

參數

applicationName
String

唯一區分此應用程式的識別碼,與電腦上的所有其他應用程式不同。

傳回

適用於

Create(DirectoryInfo, Action<IDataProtectionBuilder>)

來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs

DataProtectionProvider建立指定位置以儲存金鑰和選擇性組態回呼。

public:
 static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory, Action<Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^> ^ setupAction);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory, Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> setupAction);
static member Create : System.IO.DirectoryInfo * Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo, setupAction As Action(Of IDataProtectionBuilder)) As IDataProtectionProvider

參數

keyDirectory
DirectoryInfo

DirectoryInfo 儲存金鑰的 。 這可能代表本機磁片或 UNC 共用上的目錄。

setupAction
Action<IDataProtectionBuilder>

選擇性回呼,可提供進一步的資料保護系統設定。 如需相關資訊,請參閱 IDataProtectionBuilder

傳回

適用於

Create(DirectoryInfo, X509Certificate2)

來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs

DataProtectionProvider建立指定的位置,用來儲存金鑰和 X509Certificate2 用來加密金鑰的位置。

public:
 static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member Create : System.IO.DirectoryInfo * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo, certificate As X509Certificate2) As IDataProtectionProvider

參數

keyDirectory
DirectoryInfo

DirectoryInfo 儲存金鑰的 。 這可能代表本機磁片或 UNC 共用上的目錄。

certificate
X509Certificate2

X509Certificate2要用於加密的 。

傳回

適用於

Create(String, X509Certificate2)

來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs

DataProtectionProvider根據平臺和作業系統,建立將金鑰儲存在位置的 ,並使用指定的 X509Certificate2 來加密金鑰。

public:
 static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::String ^ applicationName, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (string applicationName, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member Create : string * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (applicationName As String, certificate As X509Certificate2) As IDataProtectionProvider

參數

applicationName
String

唯一區分此應用程式的識別碼,與電腦上的所有其他應用程式不同。

certificate
X509Certificate2

X509Certificate2要用於加密的 。

傳回

適用於

Create(DirectoryInfo, Action<IDataProtectionBuilder>, X509Certificate2)

來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs
來源:
DataProtectionProvider.cs

DataProtectionProvider建立用來儲存金鑰的位置、選擇性組態回呼,以及 X509Certificate2 用來加密金鑰的位置。

public:
 static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory, Action<Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^> ^ setupAction, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory, Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> setupAction, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member Create : System.IO.DirectoryInfo * Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo, setupAction As Action(Of IDataProtectionBuilder), certificate As X509Certificate2) As IDataProtectionProvider

參數

keyDirectory
DirectoryInfo

DirectoryInfo 儲存金鑰的 。 這可能代表本機磁片或 UNC 共用上的目錄。

setupAction
Action<IDataProtectionBuilder>

選擇性回呼,可提供進一步的資料保護系統設定。 如需相關資訊,請參閱 IDataProtectionBuilder

certificate
X509Certificate2

X509Certificate2要用於加密的 。

傳回

適用於