Sdílet prostřednictvím


Policy Members

Include Protected Members
Include Inherited Members

The Policy object represents a Policy-Based Management policy.

The Policy type exposes the following members.

Constructors

  Name Description
Public method Policy() Initializes a new instance of the Policy class.
Public method Policy(PolicyStore, String) Initializes a new instance of the Policy class.

Top

Methods

  Name Description
Public method Alter() Updates any Policy object property changes on the instance of SQL Server.
Protected method AlterImpl() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method CheckObjectCreated() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method CheckObjectState() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method Create()
Protected method CreateIdentityKey() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method CreateImpl() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method Discover(ISfcDependencyDiscoveryObjectSink) (Overrides SfcInstanceDiscover(ISfcDependencyDiscoveryObjectSink).)
Public method Drop() Removes the policy from the instance of SQL Server.
Protected method DropImpl() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method Equals(Object) (Inherited from Object.)
Public method Evaluate(AdHocPolicyEvaluationMode, array<ISfcConnection[])
Public method Evaluate(AdHocPolicyEvaluationMode, array<Object[]) Immediately executes the policy against the specified target objects by using the specified evaluation mode.
Public method Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, array<ISfcConnection[])
Protected method Finalize() (Inherited from Object.)
Protected method GetChildCollection(String) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method GetDomain() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method GetHashCode() (Inherited from Object.)
Public methodStatic member GetObjectFactory() Gets the object factory for the object.
Public method GetPropertySet() Returns the set of properties for the SfcInstance object. (Inherited from SfcInstance.)
Public method GetType() (Inherited from Object.)
Protected method GetTypeMetadataImpl() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method InitializeUIPropertyState() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method MarkForDropImpl(Boolean) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method MarkRootAsConnected() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method MemberwiseClone() (Inherited from Object.)
Protected method MoveImpl(SfcInstance) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method OnPropertyMetadataChanges(SfcPropertyMetadataChangedEventArgs) Invoked whenever the effective value of any SfcInstance metadata is updated. (Inherited from SfcInstance.)
Protected method OnPropertyValueChanges(PropertyChangedEventArgs) Invoked whenever the effective value of any SfcInstance property is updated. (Inherited from SfcInstance.)
Protected method PostAlter(Object) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method PostCreate(Object) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method PostDrop(Object) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method PostMove(Object) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method PostRename(Object) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method ProduceConfigureScript(Object)
Public method Refresh() Refreshes the object's properties by reading them from the server. (Inherited from SfcInstance.)
Public method Rename(String) Renames the policy.
Protected method RenameImpl(SfcKey) Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Protected method ResetKey() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method ScriptAlter() Alters the script that is used to create the condition.
Public method ScriptAlterWithObjectSet()
Public method ScriptCreate() Creates a script that is used to create the condition.
Public method ScriptCreateWithDependencies()
Public method ScriptCreateWithObjectSet()
Public method ScriptDrop() Drops the script that is used to create the condition.
Public method ScriptDropWithObjectSet()
Public method Serialize(XmlWriter) Serializes the instance to XML. (Inherited from SfcInstance.)
Public method ToString() Returns a string representation of the instance Urn. (Inherited from SfcInstance.)
Protected method UpdateUIPropertyState() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method UsesFacet(String)
Protected method Validate() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public method Validate(String)

Top

Fields

  Name Description
Public fieldStatic member HelpLinkStringMaxLength
Public fieldStatic member HelpTextStringMaxLength

Top

Properties

  Name Description
Protected property AbstractIdentityKey() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public property AutomatedPolicyEvaluationMode
Public property CategoryId Gets the ID value that uniquely identifies the category that is associated with the policy.
Public property Condition
Public property CreateDate Gets the date and time when the policy was created.
Public property CreatedBy Gets the policy store authentication credentials of the user who created the policy.
Public property DateModified Gets the date and time when the policy was last modified.
Public property Description Gets or sets the textual description of the policy.
Public property Enabled Gets or set the Boolean value that specifies whether the policy is enabled.
Public property EvaluationHistories
Public property HasScript Gets the Boolean value that specifies whether the policy has a script.
Public property HelpLink Gets or sets a URN to additional help information for the policy.
Public property HelpText Gets or sets the display name for the help text.
Public property ID Gets the ID value that uniquely identifies the policy.
Public property IdentityKey Gets the key that identifies the policy.
Public property Metadata() Returns metadata about the instance and its domain. (Inherited from SfcInstance.)
Public property ModifiedBy Gets the policy store authentication credentials of the user who last modified the policy.
Public property Name
Public property ObjectSet Gets or sets the set of objects that are associated with the policy.
Public property Parent Gets or sets the PolicyStore that is the parent of the policy object.
Public property PolicyCategory Gets or sets the category that is associated with the policy.
Public property Properties() Returns a collection instance properties. (Inherited from SfcInstance.)
Protected property PropertyStorageProvider() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public property RootCondition Gets or sets the name of the root condition for this policy.
Public property ScheduleUid Gets or sets the Guid that identifies the SQL Server Agent schedule that checks on the policy.
Protected property State() Returns the state of the SfcInstance object. (Inherited from SfcInstance.)
Public property Urn() Returns the uniform resource name of the SfcInstance object. (Inherited from SfcInstance.)

Top

Events

  Name Description
Public event ConnectionProcessingFinished
Public event ConnectionProcessingStarted
Public event PolicyEvaluationFinished
Public event PolicyEvaluationStarted
Protected event propertyChanged() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public event PropertyChanged() CLS-compliant event for property changes. (Inherited from SfcInstance.)
Protected event propertyMetadataChanged() Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from SfcInstance.)
Public event PropertyMetadataChanged() CLS-compliant event for property metadata changes. (Inherited from SfcInstance.)
Public event TargetProcessed

Top