Freigeben über


PolicyStore-Klasse

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

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

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

Der PolicyStore-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode PolicyStore() () () () Initializes a new instance of the PolicyStore class.
Öffentliche Methode PolicyStore(SfcConnection) Initializes a new instance of the PolicyStore class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Geschützte Eigenschaft AbstractIdentityKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Conditions Represents a collection of Condition objects. Each Condition object represents a policy-based Management condition.
Öffentliche Eigenschaft Enabled Gets or sets whether the policy store is enabled.
Öffentliche EigenschaftStatisches Element Facets Represents a collection of FacetInfo objects. Each FacetInfo object represents a policy-based Management registered facet.
Öffentliche Eigenschaft HistoryRetentionInDays Gets or sets the number of days the policy store retains history.
Öffentliche Eigenschaft IdentityKey Gets the identity key.
Öffentliche Eigenschaft LogOnSuccess Gets or sets whether log-on succeeded.
Öffentliche Eigenschaft Metadata Returns metadata about the instance and its domain. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Name Gets the name of the policy store.
Öffentliche Eigenschaft ObjectSets Represents a collection of ObjectSet objects. Each ObjectSet object represents a policy-based Management object set.
Öffentliche Eigenschaft Parent Gets or sets the instance parent via the keychain. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Policies Represents a collection of Policy objects. Each Policy object represents a policy-based Management policy.
Öffentliche Eigenschaft PolicyCategories Represents a collection of PolicyCategory objects. Each PolicyCategory object represents a policy-based Management policy category.
Öffentliche Eigenschaft PolicyCategorySubscriptions Represents a collection of PolicyCategorySubscription objects. Each PolicyCategorySubscription object represents a policy-based Management policy category subscription.
Öffentliche Eigenschaft Properties Returns a collection instance properties. (Geerbt von SfcInstance.)
Geschützte Eigenschaft PropertyStorageProvider Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft SqlStoreConnection Gets or sets the SqlStoreConnection object.
Geschützte Eigenschaft State Returns the state of the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Urn Returns the uniform resource name of the SfcInstance object. (Geerbt von SfcInstance.)

Zum Anfang

Methoden

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

Zum Anfang

Ereignisse

  Name Beschreibung
Geschütztes Ereignis propertyChanged Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliches Ereignis PropertyChanged CLS-compliant event for property changes. (Geerbt von SfcInstance.)
Geschütztes Ereignis propertyMetadataChanged Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliches Ereignis PropertyMetadataChanged CLS-compliant event for property metadata changes. (Geerbt von SfcInstance.)

Zum Anfang

Explizite Schnittstellenimplementierungen

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

Zum Anfang

Hinweise

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.

HinweisHinweis

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

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.