Share via


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 專案新增至存放庫。

適用於