This documentation is archived and is not being maintained.

ISecurityEncodable.ToXml Method

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

[Visual Basic]
Function ToXml() As SecurityElement
SecurityElement ToXml();
SecurityElement* ToXml();
function ToXml() : SecurityElement;

Return Value

An XML encoding of the security object, including any state information.


Custom code that extends security objects needs to implement the ToXml and FromXml methods to make the objects security-encodable.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ISecurityEncodable Interface | ISecurityEncodable Members | System.Security Namespace