DpapiXmlEncryptor 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
适用于
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 ,用于提供辅助服务。