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)

Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
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 ,用于提供辅助服务。

适用于