RegistryXmlRepository 类

定义

由 Windows 注册表支持的 XML 存储库。

public ref class RegistryXmlRepository : Microsoft::AspNetCore::DataProtection::Repositories::IXmlRepository
public class RegistryXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository
type RegistryXmlRepository = class
    interface IXmlRepository
Public Class RegistryXmlRepository
Implements IXmlRepository
继承
RegistryXmlRepository
实现

构造函数

RegistryXmlRepository(RegistryKey)

RegistryXmlRepository使用给定注册表项中存储的键创建 。

RegistryXmlRepository(RegistryKey, ILoggerFactory)

RegistryXmlRepository使用给定注册表项中存储的键创建 。

RegistryXmlRepository(RegistryKey, IServiceProvider)

RegistryXmlRepository使用给定注册表项中存储的键创建 。

属性

DefaultRegistryKey

默认密钥存储目录,当前对应于“HKLM\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0\AutoGenKeys{SID}”。

RegistryKey

将向其中写入密钥材料的注册表项。

Services

IServiceProvider提供给构造函数的 。

方法

GetAllElements()

获取存储库中的所有顶级 XML 元素。

StoreElement(XElement, String)

将顶级 XML 元素添加到存储库。

适用于