共用方式為


DpapiXmlEncryptor 建構函式

定義

多載

DpapiXmlEncryptor(Boolean)

DpapiXmlEncryptor建立指定的保護範圍。

DpapiXmlEncryptor(Boolean, ILoggerFactory)

DpapiXmlEncryptor建立指定的保護範圍和 IServiceProvider

DpapiXmlEncryptor(Boolean, IServiceProvider)

DpapiXmlEncryptor建立指定的保護範圍和 IServiceProvider

DpapiXmlEncryptor(Boolean)

DpapiXmlEncryptor建立指定的保護範圍。

public:
 DpapiXmlEncryptor(bool protectToLocalMachine);
public DpapiXmlEncryptor (bool protectToLocalMachine);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlEncryptor : bool -> Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlEncryptor
Public Sub New (protectToLocalMachine As Boolean)

參數

protectToLocalMachine
Boolean

如果資料應該由本機電腦上的任何人解碼,則為 'true',如果資料應該只能由目前的 Windows 使用者帳戶解碼,則為 'false'。

適用於

DpapiXmlEncryptor(Boolean, ILoggerFactory)

來源:
DpapiXmlEncryptor.cs
來源:
DpapiXmlEncryptor.cs
來源:
DpapiXmlEncryptor.cs
來源:
DpapiXmlEncryptor.cs
來源:
DpapiXmlEncryptor.cs
來源:
DpapiXmlEncryptor.cs
來源:
DpapiXmlEncryptor.cs
來源:
DpapiXmlEncryptor.cs

DpapiXmlEncryptor建立指定的保護範圍和 IServiceProvider

public:
 DpapiXmlEncryptor(bool protectToLocalMachine, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public DpapiXmlEncryptor (bool protectToLocalMachine, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlEncryptor : bool * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlEncryptor
Public Sub New (protectToLocalMachine As Boolean, loggerFactory As ILoggerFactory)

參數

protectToLocalMachine
Boolean

如果資料應該由本機電腦上的任何人解碼,則為 'true',如果資料應該只能由目前的 Windows 使用者帳戶解碼,則為 'false'。

loggerFactory
ILoggerFactory

ILoggerFactory

適用於

DpapiXmlEncryptor(Boolean, IServiceProvider)

DpapiXmlEncryptor建立指定的保護範圍和 IServiceProvider

public:
 DpapiXmlEncryptor(bool protectToLocalMachine, IServiceProvider ^ services);
public DpapiXmlEncryptor (bool protectToLocalMachine, IServiceProvider services);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlEncryptor : bool * IServiceProvider -> Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlEncryptor
Public Sub New (protectToLocalMachine As Boolean, services As IServiceProvider)

參數

protectToLocalMachine
Boolean

如果資料應該由本機電腦上的任何人解碼,則為 'true',如果資料應該只能由目前的 Windows 使用者帳戶解碼,則為 'false'。

services
IServiceProvider

選擇性 IServiceProvider 的 ,可提供輔助服務。

適用於