Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ToXml Method

CodeAccessPermission.ToXml Method

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 _
public abstract SecurityElement ToXml();
public: virtual SecurityElement* ToXml() = 0;
public abstract 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.

Notes to Inheritors:  You must implement this method in a derived class.


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

© 2015 Microsoft