Share via


DpapiXmlEncryptor Constructors

Definition

Overloads

DpapiXmlEncryptor(Boolean)

Creates a DpapiXmlEncryptor given a protection scope.

DpapiXmlEncryptor(Boolean, ILoggerFactory)

Creates a DpapiXmlEncryptor given a protection scope and an IServiceProvider.

DpapiXmlEncryptor(Boolean, IServiceProvider)

Creates a DpapiXmlEncryptor given a protection scope and an IServiceProvider.

DpapiXmlEncryptor(Boolean)

Creates a DpapiXmlEncryptor given a protection scope.

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)

Parameters

protectToLocalMachine
Boolean

'true' if the data should be decipherable by anybody on the local machine, 'false' if the data should only be decipherable by the current Windows user account.

Applies to

DpapiXmlEncryptor(Boolean, ILoggerFactory)

Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs
Source:
DpapiXmlEncryptor.cs

Creates a DpapiXmlEncryptor given a protection scope and an 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)

Parameters

protectToLocalMachine
Boolean

'true' if the data should be decipherable by anybody on the local machine, 'false' if the data should only be decipherable by the current Windows user account.

loggerFactory
ILoggerFactory

The ILoggerFactory.

Applies to

DpapiXmlEncryptor(Boolean, IServiceProvider)

Creates a DpapiXmlEncryptor given a protection scope and an 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)

Parameters

protectToLocalMachine
Boolean

'true' if the data should be decipherable by anybody on the local machine, 'false' if the data should only be decipherable by the current Windows user account.

services
IServiceProvider

An optional IServiceProvider to provide ancillary services.

Applies to