Udostępnij za pośrednictwem


Policy Members

The Policy object represents a Policy-Based Management policy.

The following tables list the members exposed by the Policy type.

Public Constructors

  Name Description
Policy Overloaded. Initializes a new instance of the Policy class.

Top

Public Fields

  Name Description
Bb964798.pubfield(pl-pl,SQL.100).gifBb964798.static(pl-pl,SQL.100).gif HelpLinkStringMaxLength  
Bb964798.pubfield(pl-pl,SQL.100).gifBb964798.static(pl-pl,SQL.100).gif HelpTextStringMaxLength  

Top

Public Properties

(see also Protected Properties )

  Name Description
Bb964798.pubproperty(pl-pl,SQL.100).gif AutomatedPolicyEvaluationMode  
Bb964798.pubproperty(pl-pl,SQL.100).gif CategoryId Gets the ID value that uniquely identifies the category that is associated with the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif Condition  
Bb964798.pubproperty(pl-pl,SQL.100).gif CreateDate Gets the date and time when the policy was created.
Bb964798.pubproperty(pl-pl,SQL.100).gif CreatedBy Gets the policy store authentication credentials of the user who created the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif DateModified Gets the date and time when the policy was last modified.
Bb964798.pubproperty(pl-pl,SQL.100).gif Description Gets or sets the textual description of the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif Enabled Gets or set the Boolean value that specifies whether the policy is enabled.
Bb964798.pubproperty(pl-pl,SQL.100).gif EvaluationHistories  
Bb964798.pubproperty(pl-pl,SQL.100).gif HasScript Gets the Boolean value that specifies whether the policy has a script.
Bb964798.pubproperty(pl-pl,SQL.100).gif HelpLink Gets or sets a URN to additional help information for the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif HelpText Gets or sets the display name for the help text.
Bb964798.pubproperty(pl-pl,SQL.100).gif ID Gets the ID value that uniquely identifies the policy category.
Bb964798.pubproperty(pl-pl,SQL.100).gif IdentityKey Gets the key that identifies the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif Metadata  Returns metadata about the instance and its domain. (inherited from SfcInstance)
Bb964798.pubproperty(pl-pl,SQL.100).gif ModifiedBy Gets the policy store authentication credentials of the user who last modified the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif Name  
Bb964798.pubproperty(pl-pl,SQL.100).gif ObjectSet Gets or sets the set of objects that are associated with the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif Parent Gets or sets the PolicyStore that is the parent of the policy object.
Bb964798.pubproperty(pl-pl,SQL.100).gif PolicyCategory Gets or sets the category that is associated with the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif Properties  Returns a collection instance properties. (inherited from SfcInstance)
Bb964798.pubproperty(pl-pl,SQL.100).gif RootCondition Gets or sets the name of the root condition for this policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif ScheduleUid Gets or sets the Guid that identifies the SQL Server Agent schedule that checks on the policy.
Bb964798.pubproperty(pl-pl,SQL.100).gif Urn  Returns the uniform resource name of the SfcInstance object. (inherited from SfcInstance)

Top

Protected Properties

  Name Description
Bb964798.protproperty(pl-pl,SQL.100).gif AbstractIdentityKey  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protproperty(pl-pl,SQL.100).gif PropertyStorageProvider  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protproperty(pl-pl,SQL.100).gif State  Returns the state of the SfcInstance object. (inherited from SfcInstance)

Top

Public Methods

(see also Protected Methods )

  Name Description
Bb964798.pubmethod(pl-pl,SQL.100).gif Alter Updates any Policy object property changes on the instance of SQL Server.
Bb964798.pubmethod(pl-pl,SQL.100).gif Create  
Bb964798.pubmethod(pl-pl,SQL.100).gif Discover Overridden.  
Bb964798.pubmethod(pl-pl,SQL.100).gif Drop Removes the policy from the instance of SQL Server.
Bb964798.pubmethod(pl-pl,SQL.100).gif Equals  Overloaded. (inherited from Object )
Bb964798.pubmethod(pl-pl,SQL.100).gif Evaluate Overloaded.  
Bb964798.pubmethod(pl-pl,SQL.100).gif GetDomain  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.pubmethod(pl-pl,SQL.100).gif GetHashCode  (inherited from Object )
Bb964798.pubmethod(pl-pl,SQL.100).gifBb964798.static(pl-pl,SQL.100).gif GetObjectFactory Gets the object factory for the object.
Bb964798.pubmethod(pl-pl,SQL.100).gif GetPropertySet  Returns the set of properties for the SfcInstance object. (inherited from SfcInstance)
Bb964798.pubmethod(pl-pl,SQL.100).gif GetType  (inherited from Object )
Bb964798.pubmethod(pl-pl,SQL.100).gif ProduceConfigureScript  
Bb964798.pubmethod(pl-pl,SQL.100).gifBb964798.static(pl-pl,SQL.100).gif ReferenceEquals  (inherited from Object )
Bb964798.pubmethod(pl-pl,SQL.100).gif Refresh  Refreshes the object's properties by reading them from the server. (inherited from SfcInstance)
Bb964798.pubmethod(pl-pl,SQL.100).gif Rename Renames the policy.
Bb964798.pubmethod(pl-pl,SQL.100).gif ScriptAlter Alters the script that is used to create the policy.
Bb964798.pubmethod(pl-pl,SQL.100).gif ScriptAlterWithObjectSet  
Bb964798.pubmethod(pl-pl,SQL.100).gif ScriptCreate Creates a script that is used to create the policy.
Bb964798.pubmethod(pl-pl,SQL.100).gif ScriptCreateWithDependencies  
Bb964798.pubmethod(pl-pl,SQL.100).gif ScriptCreateWithObjectSet  
Bb964798.pubmethod(pl-pl,SQL.100).gif ScriptDrop Drops the script that is used to create the policy.
Bb964798.pubmethod(pl-pl,SQL.100).gif ScriptDropWithObjectSet  
Bb964798.pubmethod(pl-pl,SQL.100).gif Serialize  (inherited from SfcInstance )
Bb964798.pubmethod(pl-pl,SQL.100).gif ToString  Returns a string representation of the instance Urn. (inherited from SfcInstance)
Bb964798.pubmethod(pl-pl,SQL.100).gif UsesFacet  
Bb964798.pubmethod(pl-pl,SQL.100).gif Validate Overloaded.  

Top

Protected Methods

  Name Description
Bb964798.protmethod(pl-pl,SQL.100).gif AlterImpl  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif CheckObjectCreated  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif CheckObjectState  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif CreateIdentityKey  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif CreateImpl  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif DropImpl  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif Finalize  (inherited from Object )
Bb964798.protmethod(pl-pl,SQL.100).gif GetChildCollection  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif GetTypeMetadataImpl  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif InitializeUIPropertyState  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif MarkForDropImpl  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif MarkRootAsConnected  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif MemberwiseClone  (inherited from Object )
Bb964798.protmethod(pl-pl,SQL.100).gif MoveImpl  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif OnPropertyMetadataChanges  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif OnPropertyValueChanges  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif PostAlter  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif PostCreate  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif PostDrop  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif PostMove  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif PostRename  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif RenameImpl  (inherited from SfcInstance )
Bb964798.protmethod(pl-pl,SQL.100).gif ResetKey  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif UpdateUIPropertyState  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (inherited from SfcInstance)
Bb964798.protmethod(pl-pl,SQL.100).gif Validate Overloaded.  

Top

Public Events

(see also Protected Events )

  Name Description
Bb964798.pubevent(pl-pl,SQL.100).gif ConnectionProcessingFinished  
Bb964798.pubevent(pl-pl,SQL.100).gif ConnectionProcessingStarted  
Bb964798.pubevent(pl-pl,SQL.100).gif PolicyEvaluationFinished  
Bb964798.pubevent(pl-pl,SQL.100).gif PolicyEvaluationStarted  
Bb964798.pubevent(pl-pl,SQL.100).gif PropertyChanged  CLS-compliant event for property changes. (inherited from SfcInstance)
Bb964798.pubevent(pl-pl,SQL.100).gif PropertyMetadataChanged  CLS-compliant event for property metadata changes. (inherited from SfcInstance)
Bb964798.pubevent(pl-pl,SQL.100).gif TargetProcessed  

Top

Protected Events

  Name Description
Bb964798.protevent(pl-pl,SQL.100).gif propertyChanged  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.This event is not CLS-compliant. (inherited from SfcInstance)
Bb964798.protevent(pl-pl,SQL.100).gif propertyMetadataChanged  Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.This event is not CLS-compliant. (inherited from SfcInstance)

Top