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

PolicyStore.CreatePolicyFromFacet Method (Object, String, String, String, XmlWriter)

 

Creates new policy from an Object and an XmlWriter object.

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

public void CreatePolicyFromFacet(
	object target,
	string facetName,
	string policyName,
	string conditionName,
	XmlWriter writer
)

Parameters

target
Type: System.Object

An Object object.

facetName
Type: System.String

A string value that specifies the name of the target expression.

policyName
Type: System.String

A string value that specifies the name of the new policy.

conditionName
Type: System.String

A string value that specifies the name of the condition defined by the target expression.

writer
Type: System.Xml.XmlWriter

An XmlWriter object.

Return to top
Show:
© 2016 Microsoft