Share via


PolicyStore.CreatePolicyFromFacet Method

Definition

Overloads

CreatePolicyFromFacet(SfcQueryExpression, String, String, String)

This method instantiates a Policy object which applies to the given target, and then add the policy to permanent storage. The policy is associated with a Condition whose ConditionExpression objects reflect the properties of the target as seen through the given facet at the time this method is called. You can access the newly created policy through this PolicyStore's Policies[policyName] collection.

CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter)

This method instantiates a temporary Policy object and then serializes it through the given XmlWriter. The policy is associated with a Condition whose ConditionExpression objects reflect the properties of the target as seen through the given facet at the time this method is called. This PolicyStore object is not changed by this call.

CreatePolicyFromFacet(Object, String, String, String, XmlWriter)

This method instantiates a Policy object which applies to the given target, and then add the policy to permanent storage. The policy is associated with a Condition whose ConditionExpression objects reflect the properties of the target as seen through the given facet at the time this method is called. You can access the newly created policy through this PolicyStore's Policies[policyName] collection.

CreatePolicyFromFacet(SfcQueryExpression, String, String, String)

This method instantiates a Policy object which applies to the given target, and then add the policy to permanent storage. The policy is associated with a Condition whose ConditionExpression objects reflect the properties of the target as seen through the given facet at the time this method is called. You can access the newly created policy through this PolicyStore's Policies[policyName] collection.

public void CreatePolicyFromFacet (Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression target, string facetName, string policyName, string conditionName);
member this.CreatePolicyFromFacet : Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression * string * string * string -> unit
Public Sub CreatePolicyFromFacet (target As SfcQueryExpression, facetName As String, policyName As String, conditionName As String)

Parameters

facetName
String
policyName
String
conditionName
String

Applies to

CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter)

This method instantiates a temporary Policy object and then serializes it through the given XmlWriter. The policy is associated with a Condition whose ConditionExpression objects reflect the properties of the target as seen through the given facet at the time this method is called. This PolicyStore object is not changed by this call.

public void CreatePolicyFromFacet (Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression target, string facetName, string policyName, string conditionName, System.Xml.XmlWriter writer);
member this.CreatePolicyFromFacet : Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression * string * string * string * System.Xml.XmlWriter -> unit
Public Sub CreatePolicyFromFacet (target As SfcQueryExpression, facetName As String, policyName As String, conditionName As String, writer As XmlWriter)

Parameters

facetName
String
policyName
String
conditionName
String
writer
XmlWriter

Applies to

CreatePolicyFromFacet(Object, String, String, String, XmlWriter)

This method instantiates a Policy object which applies to the given target, and then add the policy to permanent storage. The policy is associated with a Condition whose ConditionExpression objects reflect the properties of the target as seen through the given facet at the time this method is called. You can access the newly created policy through this PolicyStore's Policies[policyName] collection.

public void CreatePolicyFromFacet (object target, string facetName, string policyName, string conditionName, System.Xml.XmlWriter writer);
member this.CreatePolicyFromFacet : obj * string * string * string * System.Xml.XmlWriter -> unit
Public Sub CreatePolicyFromFacet (target As Object, facetName As String, policyName As String, conditionName As String, writer As XmlWriter)

Parameters

target
Object
facetName
String
policyName
String
conditionName
String
writer
XmlWriter

Applies to