Condividi tramite


Classe PolicyStore

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public NotInheritable Class PolicyStore _
    Inherits SfcInstance _
    Implements ISfcAlterable, IAlterable, ISfcDomain, ISfcDomainLite,  _
    ISfcHasConnection, ISfcSerializableUpgrade, ISfcValidate
'Utilizzo
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

Nel tipo PolicyStore sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico PolicyStore() () () () Initializes a new instance of the PolicyStore class.
Metodo pubblico PolicyStore(SfcConnection) Initializes a new instance of the PolicyStore class.

In alto

Proprietà

  Nome Descrizione
Proprietà protetta AbstractIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Proprietà pubblica Conditions Represents a collection of Condition objects. Each Condition object represents a policy-based Management condition.
Proprietà pubblica Enabled Gets or sets whether the policy store is enabled.
Proprietà pubblicaMembro statico Facets Represents a collection of FacetInfo objects. Each FacetInfo object represents a policy-based Management registered facet.
Proprietà pubblica HistoryRetentionInDays Gets or sets the number of days the policy store retains history.
Proprietà pubblica IdentityKey Gets the identity key.
Proprietà pubblica LogOnSuccess Gets or sets whether log-on succeeded.
Proprietà pubblica Metadata Returns metadata about the instance and its domain. Ereditato da SfcInstance.
Proprietà pubblica Name Gets the name of the policy store.
Proprietà pubblica ObjectSets Represents a collection of ObjectSet objects. Each ObjectSet object represents a policy-based Management object set.
Proprietà pubblica Parent Gets or sets the instance parent via the keychain. Ereditato da SfcInstance.
Proprietà pubblica Policies Represents a collection of Policy objects. Each Policy object represents a policy-based Management policy.
Proprietà pubblica PolicyCategories Represents a collection of PolicyCategory objects. Each PolicyCategory object represents a policy-based Management policy category.
Proprietà pubblica PolicyCategorySubscriptions Represents a collection of PolicyCategorySubscription objects. Each PolicyCategorySubscription object represents a policy-based Management policy category subscription.
Proprietà pubblica Properties Returns a collection instance properties. Ereditato da SfcInstance.
Proprietà protetta PropertyStorageProvider Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Proprietà pubblica SqlStoreConnection Gets or sets the SqlStoreConnection object.
Proprietà protetta State Returns the state of the SfcInstance object. Ereditato da SfcInstance.
Proprietà pubblica Urn Returns the uniform resource name of the SfcInstance object. Ereditato da SfcInstance.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Alter Alters a previously created PolicyStore object.
Metodo protetto AlterImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto CheckObjectCreated Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto CheckObjectState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto CreateIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto CreateImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico CreatePolicyFromFacet(SfcQueryExpression, String, String, String) Creates new policy from an SfcQueryExpression object and names.
Metodo pubblico CreatePolicyFromFacet(Object, String, String, String, XmlWriter) Creates new policy from an Object and an XmlWriter object.
Metodo pubblico CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter) Creates new policy from an SfcQueryExpression object and an XmlWriter object.
Metodo pubblico DeserializePolicy Deserializes a single policy and its associated condition from the specified XML reader into the policy store.
Metodo pubblico Discover Discovers dependency relationships for the specified sink. Esegue l'override di SfcInstance. . :: . .Discover(ISfcDependencyDiscoveryObjectSink).
Metodo protetto DropImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico EnumApplicablePolicies Enumerates policy items specified by an SfcQueryExpression object.
Metodo pubblico EnumApplicablePolicyCategories Enumerates conditions specified by an SfcQueryExpression object.
Metodo pubblico EnumConditionsOnFacet(String) Returns a list of conditions that are associated with the specified facet.
Metodo pubblico EnumConditionsOnFacet(String, PolicyStore. . :: . .EnumerationMode) Enumerates a StringCollection of conditions.
Metodo pubblicoMembro statico EnumDomainFacets Enumerates facets in a domain.
Metodo pubblico EnumPoliciesOnFacet(String) Returns a list of policies associated with the specified facet.
Metodo pubblico EnumPoliciesOnFacet(String, PolicyStore. . :: . .EnumerationMode) Enumerates policy items on a facet.
Metodo pubblico EnumPolicyCategories Returns an enumerated list of policy category information.
Metodo pubblico EnumRootConditions Returns a list of root conditions for the specified type.
Metodo pubblicoMembro statico EnumRootFacets Returns a list of root facets for the specified type.
Metodo pubblico EnumTargetSetConditions(Type) Returns a list of target set conditions for the specified type.
Metodo pubblico EnumTargetSetConditions(Type, PolicyStore. . :: . .EnumerationMode) Enumerates conditions on the target.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico EraseSystemHealthPhantomRecords Deletes system health phantom records specified by a SfcQueryExpression.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetAggregatedHealthState Deletes system health phantom records specified by a SfcQueryExpression.
Metodo protetto GetChildCollection Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico GetDomain Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetPropertySet Returns the set of properties for the SfcInstance object. Ereditato da SfcInstance.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico ImportPolicy Imports a single policy and its associated condition from the given XML reader into the policy store.
Metodo protetto InitializeUIPropertyState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto MarkForDropImpl Returns a value that indicates the existing objects to be dropped. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto MarkRootAsConnected Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico MarkSystemObject Sets the name of a Policy, Condition, or ObjectSet.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo protetto MoveImpl Indicates the new parent object to move in an instance. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. Ereditato da SfcInstance.
Metodo protetto OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. Ereditato da SfcInstance.
Metodo protetto PostAlter Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto PostCreate Indicates the default implementor that creates the execution result. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto PostDrop Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto PostMove Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto PostRename Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico PurgeHealthState() () () () Removes the health data for a specified tree/subtree.
Metodo pubblico PurgeHealthState(SfcQueryExpression) Removes the health data for a specified tree/subtree.
Metodo pubblico Refresh Refreshes the object's properties by reading them from the server. Ereditato da SfcInstance.
Metodo protetto RenameImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico RepairPolicyAutomation The RepairPolicyAutomation method recreates all necessary artifacts for all automated policies.
Metodo protetto ResetKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico ScriptAlter Alters the script associated with this policy store.
Metodo pubblico Serialize Serializes the instance to XML. Ereditato da SfcInstance.
Metodo pubblico StartSerializationUpgrade Starts a serialization upgrade.
Metodo pubblico SubscribeToPolicyCategory Subscribes the policy store to the category specified by the policyCategory and target parameters.
Metodo pubblico ToString Returns the PolicyStore object as a string value. Esegue l'override di SfcInstance. . :: . .ToString() () () ().
Metodo pubblico UnsubscribeFromPolicyCategory Unsubscribes the policy store from the category specified by the policyCategory and target parameters.
Metodo protetto UpdateUIPropertyState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto Validate Indicates the basic child object's validation. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.

In alto

Eventi

  Nome Descrizione
Evento protetto propertyChanged Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Evento pubblico PropertyChanged CLS-compliant event for property changes. Ereditato da SfcInstance.
Evento protetto propertyMetadataChanged Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Evento pubblico PropertyMetadataChanged CLS-compliant event for property metadata changes. Ereditato da SfcInstance.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain. . :: . .GetExecutionEngine Gets a new ISfcExecutionEngine object.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain. . :: . .GetKey Gets a new SfcKey of type determined by the name property of urnFragment parameter.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain. . :: . .GetType Gets a Type object specified by the typeName parameter.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain. . :: . .GetTypeMetadata Gets a T:Microsoft.SqlServer.Management.Sdk.Sfc.SfcTypeMetadata object identified by the typeName parameter.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain. . :: . .UseSfcStateManagement Use the SFC state management to return true.
Implementazione esplicita dell'interfacciaProprietà privata ISfcDomainLite. . :: . .DomainInstanceName Gets the name of the domain instance.
Implementazione esplicita dell'interfacciaProprietà privata ISfcDomainLite. . :: . .DomainName Gets the domain name.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomainLite. . :: . .GetLogicalVersion Indicates the logical version to get in the domain.
Implementazione esplicita dell'interfacciaProprietà privata ISfcHasConnection. . :: . .ConnectionContext Gets the connection context.
Implementazione esplicita dell'interfacciaMetodo privato ISfcHasConnection. . :: . .GetConnection() () () () Indicates the connection to get.
Implementazione esplicita dell'interfacciaMetodo privato ISfcHasConnection. . :: . .GetConnection(SfcObjectQueryMode) Indicates the connection to get using the SfcObjectQuery mode.
Implementazione esplicita dell'interfacciaMetodo privato ISfcHasConnection. . :: . .SetConnection Indicates the connection to set.
Implementazione esplicita dell'interfacciaMetodo privato ISfcValidate. . :: . .Validate Validates the Policy objects in the PolicyStore.

In alto

Osservazioni

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.

Nota

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

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.