PolicyStore 클래스

The PolicyStore type is the root of the DMF object model.

상속 계층

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
    Microsoft.SqlServer.Management.Dmf..::..PolicyStore

네임스페이스:  Microsoft.SqlServer.Management.Dmf
어셈블리:  Microsoft.SqlServer.Dmf(Microsoft.SqlServer.Dmf.dll)

구문

‘선언
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public NotInheritable Class PolicyStore _
    Inherits SfcInstance _
    Implements ISfcAlterable, IAlterable, ISfcDomain, ISfcDomainLite,  _
    ISfcHasConnection, ISfcSerializableUpgrade, ISfcValidate
‘사용 방법
Dim instance As PolicyStore
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public sealed class PolicyStore : SfcInstance, 
    ISfcAlterable, IAlterable, ISfcDomain, ISfcDomainLite, ISfcHasConnection, 
    ISfcSerializableUpgrade, ISfcValidate
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class PolicyStore sealed : public SfcInstance, 
    ISfcAlterable, IAlterable, ISfcDomain, ISfcDomainLite, ISfcHasConnection, 
    ISfcSerializableUpgrade, ISfcValidate
[<SealedAttribute>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type PolicyStore =  
    class
        inherit SfcInstance
        interface ISfcAlterable
        interface IAlterable
        interface ISfcDomain
        interface ISfcDomainLite
        interface ISfcHasConnection
        interface ISfcSerializableUpgrade
        interface ISfcValidate
    end
public final class PolicyStore extends SfcInstance implements ISfcAlterable, IAlterable, ISfcDomain, ISfcDomainLite, ISfcHasConnection, ISfcSerializableUpgrade, ISfcValidate

PolicyStore 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 PolicyStore() () () () Initializes a new instance of the PolicyStore class.
공용 메서드 PolicyStore(SfcConnection) Initializes a new instance of the PolicyStore class.

맨 위로 이동

속성

  이름 설명
보호된 속성 AbstractIdentityKey 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 속성 Conditions Represents a collection of Condition objects. Each Condition object represents a policy-based Management condition.
공용 속성 Enabled Gets or sets whether the policy store is enabled.
공용 속성정적 멤버 Facets Represents a collection of FacetInfo objects. Each FacetInfo object represents a policy-based Management registered facet.
공용 속성 HistoryRetentionInDays Gets or sets the number of days the policy store retains history.
공용 속성 IdentityKey Gets the identity key.
공용 속성 LogOnSuccess Gets or sets whether log-on succeeded.
공용 속성 Metadata Returns metadata about the instance and its domain. (SfcInstance에서 상속됨)
공용 속성 Name Gets the name of the policy store.
공용 속성 ObjectSets Represents a collection of ObjectSet objects. Each ObjectSet object represents a policy-based Management object set.
공용 속성 Parent Gets or sets the instance parent via the keychain. (SfcInstance에서 상속됨)
공용 속성 Policies Represents a collection of Policy objects. Each Policy object represents a policy-based Management policy.
공용 속성 PolicyCategories Represents a collection of PolicyCategory objects. Each PolicyCategory object represents a policy-based Management policy category.
공용 속성 PolicyCategorySubscriptions Represents a collection of PolicyCategorySubscription objects. Each PolicyCategorySubscription object represents a policy-based Management policy category subscription.
공용 속성 Properties Returns a collection instance properties. (SfcInstance에서 상속됨)
보호된 속성 PropertyStorageProvider 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 속성 SqlStoreConnection Gets or sets the SqlStoreConnection object.
보호된 속성 State Returns the state of the SfcInstance object. (SfcInstance에서 상속됨)
공용 속성 Urn Returns the uniform resource name of the SfcInstance object. (SfcInstance에서 상속됨)

맨 위로 이동

메서드

  이름 설명
공용 메서드 Alter Alters a previously created PolicyStore object.
보호된 메서드 AlterImpl 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 CheckObjectCreated 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 CheckObjectState 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 CreateIdentityKey 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 CreateImpl 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 CreatePolicyFromFacet(SfcQueryExpression, String, String, String) Creates new policy from an SfcQueryExpression object and names.
공용 메서드 CreatePolicyFromFacet(Object, String, String, String, XmlWriter) Creates new policy from an Object and an XmlWriter object.
공용 메서드 CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter) Creates new policy from an SfcQueryExpression object and an XmlWriter object.
공용 메서드 DeserializePolicy Deserializes a single policy and its associated condition from the specified XML reader into the policy store.
공용 메서드 Discover Discovers dependency relationships for the specified sink. (SfcInstance. . :: . .Discover(ISfcDependencyDiscoveryObjectSink)을(를) 재정의함)
보호된 메서드 DropImpl 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 EnumApplicablePolicies Enumerates policy items specified by an SfcQueryExpression object.
공용 메서드 EnumApplicablePolicyCategories Enumerates conditions specified by an SfcQueryExpression object.
공용 메서드 EnumConditionsOnFacet(String) Returns a list of conditions that are associated with the specified facet.
공용 메서드 EnumConditionsOnFacet(String, PolicyStore. . :: . .EnumerationMode) Enumerates a StringCollection of conditions.
공용 메서드정적 멤버 EnumDomainFacets Enumerates facets in a domain.
공용 메서드 EnumPoliciesOnFacet(String) Returns a list of policies associated with the specified facet.
공용 메서드 EnumPoliciesOnFacet(String, PolicyStore. . :: . .EnumerationMode) Enumerates policy items on a facet.
공용 메서드 EnumPolicyCategories Returns an enumerated list of policy category information.
공용 메서드 EnumRootConditions Returns a list of root conditions for the specified type.
공용 메서드정적 멤버 EnumRootFacets Returns a list of root facets for the specified type.
공용 메서드 EnumTargetSetConditions(Type) Returns a list of target set conditions for the specified type.
공용 메서드 EnumTargetSetConditions(Type, PolicyStore. . :: . .EnumerationMode) Enumerates conditions on the target.
공용 메서드 Equals (Object에서 상속됨)
공용 메서드 EraseSystemHealthPhantomRecords Deletes system health phantom records specified by a SfcQueryExpression.
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetAggregatedHealthState Deletes system health phantom records specified by a SfcQueryExpression.
보호된 메서드 GetChildCollection 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 GetDomain 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetPropertySet Returns the set of properties for the SfcInstance object. (SfcInstance에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 ImportPolicy Imports a single policy and its associated condition from the given XML reader into the policy store.
보호된 메서드 InitializeUIPropertyState 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 MarkForDropImpl Returns a value that indicates the existing objects to be dropped. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 MarkRootAsConnected 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 MarkSystemObject Sets the name of a Policy, Condition, or ObjectSet.
보호된 메서드 MemberwiseClone (Object에서 상속됨)
보호된 메서드 MoveImpl Indicates the new parent object to move in an instance. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (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 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 PostCreate Indicates the default implementor that creates the execution result. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 PostDrop 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 PostMove 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 PostRename 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 PurgeHealthState() () () () Removes the health data for a specified tree/subtree.
공용 메서드 PurgeHealthState(SfcQueryExpression) Removes the health data for a specified tree/subtree.
공용 메서드 Refresh Refreshes the object's properties by reading them from the server. (SfcInstance에서 상속됨)
보호된 메서드 RenameImpl 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 RepairPolicyAutomation The RepairPolicyAutomation method recreates all necessary artifacts for all automated policies.
보호된 메서드 ResetKey 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 ScriptAlter Alters the script associated with this policy store.
공용 메서드 Serialize Serializes the instance to XML. (SfcInstance에서 상속됨)
공용 메서드 StartSerializationUpgrade Starts a serialization upgrade.
공용 메서드 SubscribeToPolicyCategory Subscribes the policy store to the category specified by the policyCategory and target parameters.
공용 메서드 ToString Returns the PolicyStore object as a string value. (SfcInstance. . :: . .ToString() () () ()을(를) 재정의함)
공용 메서드 UnsubscribeFromPolicyCategory Unsubscribes the policy store from the category specified by the policyCategory and target parameters.
보호된 메서드 UpdateUIPropertyState 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 Validate Indicates the basic child object's validation. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)

맨 위로 이동

이벤트

  이름 설명
보호된 이벤트 propertyChanged 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 이벤트 PropertyChanged CLS-compliant event for property changes. (SfcInstance에서 상속됨)
보호된 이벤트 propertyMetadataChanged 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 이벤트 PropertyMetadataChanged CLS-compliant event for property metadata changes. (SfcInstance에서 상속됨)

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 ISfcDomain. . :: . .GetExecutionEngine Gets a new ISfcExecutionEngine object.
명시적 인터페이스 구현전용 메서드 ISfcDomain. . :: . .GetKey Gets a new SfcKey of type determined by the name property of urnFragment parameter.
명시적 인터페이스 구현전용 메서드 ISfcDomain. . :: . .GetType Gets a Type object specified by the typeName parameter.
명시적 인터페이스 구현전용 메서드 ISfcDomain. . :: . .GetTypeMetadata Gets a T:Microsoft.SqlServer.Management.Sdk.Sfc.SfcTypeMetadata object identified by the typeName parameter.
명시적 인터페이스 구현전용 메서드 ISfcDomain. . :: . .UseSfcStateManagement Use the SFC state management to return true.
명시적 인터페이스 구현전용 속성 ISfcDomainLite. . :: . .DomainInstanceName Gets the name of the domain instance.
명시적 인터페이스 구현전용 속성 ISfcDomainLite. . :: . .DomainName Gets the domain name.
명시적 인터페이스 구현전용 메서드 ISfcDomainLite. . :: . .GetLogicalVersion Indicates the logical version to get in the domain.
명시적 인터페이스 구현전용 속성 ISfcHasConnection. . :: . .ConnectionContext Gets the connection context.
명시적 인터페이스 구현전용 메서드 ISfcHasConnection. . :: . .GetConnection() () () () Indicates the connection to get.
명시적 인터페이스 구현전용 메서드 ISfcHasConnection. . :: . .GetConnection(SfcObjectQueryMode) Indicates the connection to get using the SfcObjectQuery mode.
명시적 인터페이스 구현전용 메서드 ISfcHasConnection. . :: . .SetConnection Indicates the connection to set.
명시적 인터페이스 구현전용 메서드 ISfcValidate. . :: . .Validate Validates the Policy objects in the PolicyStore.

맨 위로 이동

주의

Using the PolicyStore object you can:

  • Hold a connection to the whole object model.

  • Access the collection of policies, conditions, policy groups, subscriptions and facets that are immediate children of the PolicyStore object.

  • Review the policy execution history.

  • Review applicable policies for a given target type.

  • Subscribe to policies.

  • Serialize and deserialize policies.

  • Create a policy from a facet.

[!참고]

The PolicyStore class implements ISfcDomain, which specifies the connection point to any object domain defined using the Microsoft SFC.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.