PolicyStore 类

定义

PolicyStore 对象是 DMF 层次结构的根对象。

[System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter))]
public sealed class PolicyStore : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSerializableUpgrade, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcValidate
[<System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter))>]
type PolicyStore = class
    inherit SfcInstance
    interface ISfcAlterable
    interface IAlterable
    interface ISfcDomain
    interface ISfcDomainLite
    interface ISfcHasConnection
    interface ISfcSerializableUpgrade
    interface ISfcValidate
Public NotInheritable Class PolicyStore
Inherits SfcInstance
Implements IAlterable, ISfcAlterable, ISfcDomain, ISfcSerializableUpgrade, ISfcValidate
继承
PolicyStore
属性
实现

构造函数

名称 说明
PolicyStore()

请勿调用此内容,或者如果记得设置 SqlStoreConnection

PolicyStore(SfcConnection)

PolicyStore 对象是 DMF 层次结构的根对象。

属性

名称 说明
AbstractIdentityKey

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
Conditions

PolicyStore 对象是 DMF 层次结构的根对象。

Enabled

PolicyStore 对象是 DMF 层次结构的根对象。

Facets

返回 FacetInfo 的集合。

HistoryRetentionInDays

PolicyStore 对象是 DMF 层次结构的根对象。

IdentityKey

PolicyStore 对象是 DMF 层次结构的根对象。

KeyChain

返回对象的标识路径

(继承自 SfcInstance)
LogOnSuccess

PolicyStore 对象是 DMF 层次结构的根对象。

Metadata

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
Name

连接到的服务器的名称

ObjectSets

PolicyStore 对象是 DMF 层次结构的根对象。

Parent

父级不是保留本地的内容,它从密钥链中隐含父级的概念,即父级的概念真正关系到父级和根目录下,如果我们只通过父级执行此操作,则我们不能仅实例化具有轻型 SfcKeyChain 集的对象

将父级设置为帮助程序操作可以设置密钥链

(继承自 SfcInstance)
Policies

PolicyStore 对象是 DMF 层次结构的根对象。

PolicyCategories

PolicyStore 对象是 DMF 层次结构的根对象。

PolicyCategorySubscriptions

PolicyStore 对象是 DMF 层次结构的根对象。

Properties

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PropertyStorageProvider

此属性返回 ISfcPropertyStorageProvider 接口的默认实现,可以在子类中重写它以返回另一个存储提供程序(即平面属性列表)

(继承自 SfcInstance)
SqlStoreConnection

PolicyStore 对象是 DMF 层次结构的根对象。

State

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
Urn

在每个请求上创建新的 Urn 字符串并返回它。

(继承自 SfcInstance)

方法

名称 说明
Alter()

PolicyStore 对象是 DMF 层次结构的根对象。

AlterImpl()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
CheckObjectCreated()

当 API 要求对象的创建比 CheckObjectState 更强时从域调用

(继承自 SfcInstance)
CheckObjectState()

从域中调用以访问对象

(继承自 SfcInstance)
CreateIdentityKey()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
CreateImpl()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
CreatePolicyFromFacet(Object, String, String, String, XmlWriter)

此方法实例化应用于给定目标的 Policy 对象,然后将策略添加到永久存储。 该策略与条件相关联,该条件的 ConditionExpression 对象反映在调用此方法时通过给定方面看到的目标属性。 可以通过此 PolicyStore 的 Policies[policyName] 集合访问新创建的策略。

CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter)

此方法实例化临时 Policy 对象,然后通过给定的 XmlWriter 序列化它。 该策略与条件相关联,该条件的 ConditionExpression 对象反映在调用此方法时通过给定方面看到的目标属性。 此调用不会更改此 PolicyStore 对象。

CreatePolicyFromFacet(SfcQueryExpression, String, String, String)

此方法实例化应用于给定目标的 Policy 对象,然后将策略添加到永久存储。 该策略与条件相关联,该条件的 ConditionExpression 对象反映在调用此方法时通过给定方面看到的目标属性。 可以通过此 PolicyStore 的 Policies[policyName] 集合访问新创建的策略。

DeserializePolicy(XmlReader, Boolean, Boolean)

从给定的 XML 读取器反序列化单个策略。 读取器应以前由受支持的 Export 方法创建。 反序列化策略仅存在于内存中,必须在服务器上的 PolicyStore 中创建该策略才能持久保存它。

Discover(ISfcDependencyDiscoveryObjectSink)

PolicyStore 对象是 DMF 层次结构的根对象。

DropImpl()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
EnumApplicablePolicies(SfcQueryExpression)

返回一个 DataTable,其中包含应用于所提供目标相同的目标类型的策略。 换句话说,如果提供了数据库目标,则会考虑适用于数据库、表和数据库下的任何其他类型的策略。

EnumApplicablePolicyCategories(SfcQueryExpression)

返回一个只读集合,其中包含每个策略类别,该类别中的每个策略重复,如果目标订阅类别、类别中的所有数据库和数据库后代策略以及策略的执行模式,则返回一个标志。 注意:此方法目前仅在数据库目标上有效。

EnumConditionsOnFacet(String, PolicyStore+EnumerationMode)

枚举与给定方面关联的条件,遵循 IsSystemObject 标志

EnumConditionsOnFacet(String)

枚举与给定方面关联的条件

EnumDomainFacets(String[])

返回列出的域的 FacetInfo 集合。 传递 Facet 的 String.Empty,而不与 SFC 域关联

EnumPoliciesOnFacet(String, PolicyStore+EnumerationMode)

枚举与给定方面关联的策略,遵循 IsSystemObject 标志

EnumPoliciesOnFacet(String)

枚举与给定方面关联的策略

EnumPolicyCategories()

返回包含所有策略类别的只读集合。

EnumRootConditions(Type)

为给定类型枚举根条件

EnumRootFacets(Type)

返回根方面集合

EnumTargetSetConditions(Type, PolicyStore+EnumerationMode)

枚举可在 TargetSet 筛选器中使用的给定类型的条件,遵循 IsSystemObject 标志

EnumTargetSetConditions(Type)

枚举可在 TargetSet 筛选器中使用的给定类型的条件

EraseSystemHealthPhantomRecords()

此函数通过循环访问所有冲突并验证它们是否对应于现有对象来擦除系统运行状况表中的虚拟记录。

GetAggregatedHealthState(SfcQueryExpression)

返回目标查询的聚合运行状况信息,该信息可以描述单个对象或对象的集合。

GetChildCollection(String)

获取此实例中给定元素名称字符串的子集合。

(继承自 SfcInstance)
GetDomain()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
GetPropertySet()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
GetTypeMetadataImpl()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
ImportPolicy(XmlReader, ImportPolicyEnabledState, Boolean, Boolean)

从给定的 XML 读取器导入单个策略。 读取器应以前由受支持的 Export 方法创建。 导入的策略也会在服务器上的 PolicyStore 中创建。

InitializeUIPropertyState()

可重写那些关心初始化其状态的子对象(当前为“动态元数据”。Enabled“ 属性)

(继承自 SfcInstance)
MarkForDropImpl(Boolean)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
MarkRootAsConnected()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
MarkSystemObject(Object, Boolean)

设置存储中对象的系统标志

MoveImpl(SfcInstance)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
OnPropertyMetadataChanges(SfcPropertyMetadataChangedEventArgs)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
OnPropertyValueChanges(PropertyChangedEventArgs)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PostAlter(Object)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PostCreate(Object)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PostDrop(Object)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PostMove(Object)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PostRename(Object)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PurgeHealthState()

从策略运行状况表清除所有记录。

PurgeHealthState(SfcQueryExpression)

从与树中的节点关联的策略运行状况表清除记录,从传递给 targetTreeRoot 的值开始。

Refresh()

通过从服务器读取对象属性来刷新这些属性

(继承自 SfcInstance)
RenameImpl(SfcKey)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
RepairPolicyAutomation()

还原由基于策略的管理创建的所有项目,以支持策略自动化。

ResetKey()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
ScriptAlter()

PolicyStore 对象是 DMF 层次结构的根对象。

Serialize(XmlWriter)

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
StartSerializationUpgrade()

PolicyStore 对象是 DMF 层次结构的根对象。

SubscribeToPolicyCategory(SfcQueryExpression, String)

为指定的策略类别提供的目标创建订阅。 如果订阅已存在,则会引发此事件。

ToString()

策略存储的字符串标识是关联的服务器名称。

UnsubscribeFromPolicyCategory(SfcQueryExpression, String)

从指定的策略类别取消订阅提供的目标。 如果目标未订阅类别,则会引发此情况。

UpdateUIPropertyState()

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
Validate()

基本子对象的验证

(继承自 SfcInstance)

活动

名称 说明
propertyChanged

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PropertyChanged

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
propertyMetadataChanged

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)
PropertyMetadataChanged

PolicyStore 对象是 DMF 层次结构的根对象。

(继承自 SfcInstance)

显式接口实现

名称 说明
ISfcDomain.GetExecutionEngine()

PolicyStore 对象是 DMF 层次结构的根对象。

ISfcDomain.GetKey(IUrnFragment)

返回给定 Urn 片段的 Key 对象

ISfcDomain.GetType(String)

PolicyStore 对象是 DMF 层次结构的根对象。

ISfcDomain.GetTypeMetadata(String)

PolicyStore 对象是 DMF 层次结构的根对象。

ISfcDomain.UseSfcStateManagement()

PolicyStore 对象是 DMF 层次结构的根对象。

ISfcDomainLite.DomainInstanceName

PolicyStore 对象是 DMF 层次结构的根对象。

ISfcDomainLite.DomainName

PolicyStore 对象是 DMF 层次结构的根对象。

ISfcDomainLite.GetLogicalVersion()

返回域的逻辑版本

ISfcHasConnection.ConnectionContext

PolicyStore 对象是 DMF 层次结构的根对象。

ISfcHasConnection.GetConnection()

获取要查询的当前连接。 返回支持单个串行查询的连接,因此查询必须在另一个查询开始之前结束。

ISfcHasConnection.GetConnection(SfcObjectQueryMode)

获取要查询的当前连接。 返回支持单个串行查询或多个同时按请求打开的查询的连接。

ISfcHasConnection.SetConnection(ISfcConnection)

设置活动连接。

ISfcValidate.Validate(String, Object[])

策略的 ISfcValidate 实现

适用于