Método DeserializePolicy
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 (em Microsoft.SqlServer.Dmf.dll)
Sintaxe
'Declaração
Public Function DeserializePolicy ( _
xmlReader As XmlReader, _
overwriteExistingPolicy As Boolean, _
overwriteExistingCondition As Boolean _
) As Policy
'Uso
Dim instance As PolicyStore
Dim xmlReader As XmlReader
Dim overwriteExistingPolicy As Boolean
Dim overwriteExistingCondition As Boolean
Dim returnValue As Policy
returnValue = instance.DeserializePolicy(xmlReader, _
overwriteExistingPolicy, overwriteExistingCondition)
public Policy DeserializePolicy(
XmlReader xmlReader,
bool overwriteExistingPolicy,
bool overwriteExistingCondition
)
public:
Policy^ DeserializePolicy(
XmlReader^ xmlReader,
bool overwriteExistingPolicy,
bool overwriteExistingCondition
)
member DeserializePolicy :
xmlReader:XmlReader *
overwriteExistingPolicy:bool *
overwriteExistingCondition:bool -> Policy
public function DeserializePolicy(
xmlReader : XmlReader,
overwriteExistingPolicy : boolean,
overwriteExistingCondition : boolean
) : Policy
Parâmetros
- xmlReader
Tipo: System.Xml. . :: . .XmlReader
An XmlReader object that specifies the XML reader from which to deserialize the policy.
- overwriteExistingPolicy
Tipo: System. . :: . .Boolean
A Boolean value that specifies whether the existing policy is overwritten during the deserialization.
- overwriteExistingCondition
Tipo: System. . :: . .Boolean
A Boolean value that specifies whether the existing condition is overwritten during the deserialization.
Valor de retorno
Comentários
The deserialized policy and condition exists in-memory only.
Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.
Consulte também