Condividi tramite


PolicyExtender Class

Definition

Decorator for the Policy object. Used add additional properties to the base Policy object

public sealed class PolicyExtender : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectExtender<Microsoft.SqlServer.Management.Dmf.Policy>
type PolicyExtender = class
    inherit SfcObjectExtender<Policy>
Public NotInheritable Class PolicyExtender
Inherits SfcObjectExtender(Of Policy)
Inheritance
PolicyExtender

Constructors

PolicyExtender()

default ctor

PolicyExtender(Policy)

ctor. Takes parent Policy object to aggregate on

PolicyExtender(PolicyStore, String)

ctor. Create a new Policy object and aggregates on it.

Properties

Categories

Provides a list of available categories

Category

Translates parent's 'PolicyCategory' string property into PolicyCategory object property

ConditionInstance

Translates parent's 'Condition' string property into Condition object property

EnableRootRestriction

Root name of the policy object

Filters

Current Filters

OfflineMode

Offline mode or not

Parent

Parent object

(Inherited from SfcObjectExtender<TSfcInstance>)
PolicyFilePath

Policy File path in offline mode

RootName

Root name of the policy object

SupportedPolicyEvaluationMode

Returns supported evaluation modes for selected Condition

Methods

GetParentSfcPropertySet()

Returns an instance of the parent's property set

(Inherited from SfcObjectExtender<TSfcInstance>)
GetPropertySet()

returns collection of the properties

(Inherited from SfcObjectExtender<TSfcInstance>)
OnPropertyChanged(String)

Fires PropertyChanged event, when it has any subscriber

(Inherited from SfcObjectExtender<TSfcInstance>)
OnPropertyMetadataChanged(String)

Fires PropertyMetadataChanged event, when it has any subscriber

(Inherited from SfcObjectExtender<TSfcInstance>)
parent_PropertyChanged(Object, PropertyChangedEventArgs) (Inherited from SfcObjectExtender<TSfcInstance>)
parent_PropertyMetadataChanged(Object, SfcPropertyMetadataChangedEventArgs) (Inherited from SfcObjectExtender<TSfcInstance>)
RegisterParentProperty(PropertyInfo)

Register property of the parent, that has not been included in properties collection (like 'Name' in SMO or collections

(Inherited from SfcObjectExtender<TSfcInstance>)
RegisterProperty(PropertyInfo, String)

Register an additional reflected property, dependant on the property from the parent object

(Inherited from SfcObjectExtender<TSfcInstance>)
RegisterProperty(PropertyInfo)

Register an additional reflected property

(Inherited from SfcObjectExtender<TSfcInstance>)

Events

PropertyChanged (Inherited from SfcObjectExtender<TSfcInstance>)
PropertyMetadataChanged (Inherited from SfcObjectExtender<TSfcInstance>)

Applies to