Creates an XML encoding, of the security object and its current state.
[Visual Basic] Overrides Public Function ToXml() As SecurityElement [C#] public override SecurityElement ToXml(); [C++] public: override 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 will need to implement the ToXML and FromXML methods to make the objects security-encodable.
EnvironmentPermission Class | EnvironmentPermission Members | System.Security.Permissions Namespace