RegistryXmlRepository 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
由 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 元素添加到存储库。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈