NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ISecurityPolicyEncodable.ToXml

Creates an XML encoding, of the security object and its current state.

Policy level context is provided for resolution of named permission set references. (For instance, code groups use policy level to lookup named permission sets by name.)

[Visual Basic]
Function ToXml( _
   ByVal level As PolicyLevel _
) As SecurityElement
[C#]
SecurityElement ToXml(
   PolicyLevel level
);
[C++]
SecurityElement* ToXml(
   PolicyLevel* level
) = 0;
[JScript]
function ToXml(
   level : PolicyLevel
) : SecurityElement;

Parameters

level
Policy level context is provided for resolution of named permission set references.

Return Value

Root element of XML representation of the policy object.

Remarks

Custom code that extends security policy objects will need to implement the ToXML and FromXML methods to make the objects security-encodable.

See Also

ISecurityPolicyEncodable Interface | ISecurityPolicyEncodable Members | System.Security Namespace