Creates an XML encoding of the security object and its current state.
[Visual Basic] Overrides Public Function ToXml() As SecurityElement Implements _ ISecurityEncodable.ToXml [C#] public override SecurityElement ToXml(); [C++] public: SecurityElement* ToXml(); [JScript] public override function ToXml() : SecurityElement;
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
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code