Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PolicyStore.DeserializePolicy Method

Deserializes a single policy and its associated condition from the specified XML reader into the policy store.

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

public Policy DeserializePolicy(
	XmlReader xmlReader,
	bool overwriteExistingPolicy,
	bool overwriteExistingCondition
)

Parameters

xmlReader
Type: XmlReader
An XmlReader object that specifies the XML reader from which to deserialize the policy.
overwriteExistingPolicy
Type: Boolean
A Boolean value that specifies whether the existing policy is overwritten during the deserialization.
overwriteExistingCondition
Type: Boolean
A Boolean value that specifies whether the existing condition is overwritten during the deserialization.

Return Value

Type: Microsoft.SqlServer.Management.Dmf.Policy
A Policy and its associated condition from the specified XML reader into the policy store.

The deserialized policy and condition exists in-memory only.

Community Additions

ADD
Show:
© 2015 Microsoft