This documentation is archived and is not being maintained.
CodeAccessPermission.ToXml Method
.NET Framework 1.1
When overridden in a derived class, creates an XML encoding of the security object and its current state.
[Visual Basic] Public MustOverride Function ToXml() As SecurityElement Implements _ ISecurityEncodable.ToXml [C#] public abstract SecurityElement ToXml(); [C++] public: virtual SecurityElement* ToXml() = 0; [JScript] public abstract function ToXml() : SecurityElement;
Return Value
An XML encoding of the security object, including any state information.
Implements
Remarks
Custom code that extends security objects needs to implement the ToXml and FromXml methods to make the objects security-encodable.
Notes to Inheritors: You must implement this method in a derived class.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard
See Also
CodeAccessPermission Class | CodeAccessPermission Members | System.Security Namespace
Show: