Policy 类
The Policy object represents a Policy-Based Management policy.
继承层次结构
System. . :: . .Object
SfcInstance
Microsoft.SqlServer.Management.Dmf..::..Policy
命名空间: Microsoft.SqlServer.Management.Dmf
程序集: Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)
语法
声明
Public NotInheritable Class Policy _
Inherits SfcInstance _
Implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, _
ISfcAlterable, IAlterable, ISfcRenamable, IRenamable, ISfcValidate
用法
Dim instance As Policy
public sealed class Policy : SfcInstance,
ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable,
IAlterable, ISfcRenamable, IRenamable, ISfcValidate
public ref class Policy sealed : public SfcInstance,
ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable,
IAlterable, ISfcRenamable, IRenamable, ISfcValidate
[<SealedAttribute>]
type Policy =
class
inherit SfcInstance
interface ISfcCreatable
interface ICreatable
interface ISfcDroppable
interface IDroppable
interface ISfcAlterable
interface IAlterable
interface ISfcRenamable
interface IRenamable
interface ISfcValidate
end
public final class Policy extends SfcInstance implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable, IAlterable, ISfcRenamable, IRenamable, ISfcValidate
Policy 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
Policy() () () () | Initializes a new instance of the Policy class. | |
Policy(PolicyStore, String) | Initializes a new instance of the Policy class. |
页首
属性
名称 | 说明 | |
---|---|---|
AbstractIdentityKey | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
AutomatedPolicyEvaluationMode | ||
CategoryId | Gets the ID value that uniquely identifies the category that is associated with the policy. | |
Condition | ||
CreateDate | Gets the date and time when the policy was created. | |
CreatedBy | Gets the policy store authentication credentials of the user who created the policy. | |
DateModified | Gets the date and time when the policy was last modified. | |
Description | Gets or sets the textual description of the policy. | |
Enabled | Gets or set the Boolean value that specifies whether the policy is enabled. | |
EvaluationHistories | ||
HasScript | Gets the Boolean value that specifies whether the policy has a script. | |
HelpLink | Gets or sets a URN to additional help information for the policy. | |
HelpText | Gets or sets the display name for the help text. | |
ID | Gets the ID value that uniquely identifies the policy. | |
IdentityKey | Gets the key that identifies the policy. | |
Metadata | Returns metadata about the instance and its domain. (从 SfcInstance 继承。) | |
ModifiedBy | Gets the policy store authentication credentials of the user who last modified the policy. | |
Name | ||
ObjectSet | Gets or sets the set of objects that are associated with the policy. | |
Parent | Gets or sets the PolicyStore that is the parent of the policy object. | |
PolicyCategory | Gets or sets the category that is associated with the policy. | |
Properties | Returns a collection instance properties. (从 SfcInstance 继承。) | |
PropertyStorageProvider | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
RootCondition | Gets or sets the name of the root condition for this policy. | |
ScheduleUid | Gets or sets the Guid that identifies the SQL Server Agent schedule that checks on the policy. | |
State | Returns the state of the SfcInstance object. (从 SfcInstance 继承。) | |
Urn | Returns the uniform resource name of the SfcInstance object. (从 SfcInstance 继承。) |
页首
方法
名称 | 说明 | |
---|---|---|
Alter | Updates any Policy object property changes on the instance of SQL Server. | |
AlterImpl | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
CheckObjectCreated | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
CheckObjectState | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
Create | ||
CreateIdentityKey | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
CreateImpl | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
Discover | (覆盖 SfcInstanceDiscover(ISfcDependencyDiscoveryObjectSink)。) | |
Drop | Removes the policy from the instance of SQL Server. | |
DropImpl | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
Equals | (从 Object 继承。) | |
Evaluate(AdHocPolicyEvaluationMode, array<ISfcConnection> [] () [] []) | ||
Evaluate(AdHocPolicyEvaluationMode, array<Object> [] () [] []) | Immediately executes the policy against the specified target objects by using the specified evaluation mode. | |
Evaluate(AdHocPolicyEvaluationMode, SfcQueryExpression, array<ISfcConnection> [] () [] []) | ||
Finalize | (从 Object 继承。) | |
GetChildCollection | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
GetDomain | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetObjectFactory | Gets the object factory for the object. | |
GetPropertySet | Returns the set of properties for the SfcInstance object. (从 SfcInstance 继承。) | |
GetType | (从 Object 继承。) | |
GetTypeMetadataImpl | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
InitializeUIPropertyState | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
MarkForDropImpl | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
MarkRootAsConnected | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
MoveImpl | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (从 SfcInstance 继承。) | |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (从 SfcInstance 继承。) | |
PostAlter | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
PostCreate | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
PostDrop | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
PostMove | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
PostRename | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
ProduceConfigureScript | ||
Refresh | Refreshes the object's properties by reading them from the server. (从 SfcInstance 继承。) | |
Rename | Renames the policy. | |
RenameImpl | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
ResetKey | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
ScriptAlter | Alters the script that is used to create the condition. | |
ScriptAlterWithObjectSet | ||
ScriptCreate | Creates a script that is used to create the condition. | |
ScriptCreateWithDependencies | ||
ScriptCreateWithObjectSet | ||
ScriptDrop | Drops the script that is used to create the condition. | |
ScriptDropWithObjectSet | ||
Serialize | Serializes the instance to XML. (从 SfcInstance 继承。) | |
ToString | Returns a string representation of the instance Urn. (从 SfcInstance 继承。) | |
UpdateUIPropertyState | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
UsesFacet | ||
Validate()()()() | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
Validate(String) |
页首
事件
名称 | 说明 | |
---|---|---|
ConnectionProcessingFinished | ||
ConnectionProcessingStarted | ||
PolicyEvaluationFinished | ||
PolicyEvaluationStarted | ||
propertyChanged | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
PropertyChanged | CLS-compliant event for property changes. (从 SfcInstance 继承。) | |
propertyMetadataChanged | 标识为仅供参考。 不提供支持。 不保证以后的兼容性。 (从 SfcInstance 继承。) | |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (从 SfcInstance 继承。) | |
TargetProcessed |
页首
注释
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。