Share via


RegistryXmlRepository Class

Definition

An XML repository backed by the Windows registry.

public ref class RegistryXmlRepository : Microsoft::AspNetCore::DataProtection::Repositories::IXmlRepository
public class RegistryXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository
public class RegistryXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IDeletableXmlRepository
type RegistryXmlRepository = class
    interface IXmlRepository
type RegistryXmlRepository = class
    interface IDeletableXmlRepository
    interface IXmlRepository
Public Class RegistryXmlRepository
Implements IXmlRepository
Public Class RegistryXmlRepository
Implements IDeletableXmlRepository
Inheritance
RegistryXmlRepository
Implements

Constructors

RegistryXmlRepository(RegistryKey, ILoggerFactory)

Creates a RegistryXmlRepository with keys stored in the given registry key.

RegistryXmlRepository(RegistryKey, IServiceProvider)

Creates a RegistryXmlRepository with keys stored in the given registry key.

RegistryXmlRepository(RegistryKey)

Creates a RegistryXmlRepository with keys stored in the given registry key.

Properties

DefaultRegistryKey

The default key storage directory, which currently corresponds to "HKLM\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0\AutoGenKeys{SID}".

RegistryKey

The registry key into which key material will be written.

Services

The IServiceProvider provided to the constructor.

Methods

DeleteElements(Action<IReadOnlyCollection<IDeletableElement>>)

Deletes selected elements from the repository.

GetAllElements()

Gets all top-level XML elements in the repository.

StoreElement(XElement, String)

Adds a top-level XML element to the repository.

Applies to