CodeAccessPermission.FromXml(SecurityElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, reconstructs a security object with a specified state from an XML encoding.
public:
abstract void FromXml(System::Security::SecurityElement ^ elem);
public abstract void FromXml(System.Security.SecurityElement elem);
abstract member FromXml : System.Security.SecurityElement -> unit
Public MustOverride Sub FromXml (elem As SecurityElement)
Parameters
- elem
- SecurityElement
The XML encoding to use to reconstruct the security object.
Implements
Exceptions
The elem
parameter is null
.
The elem
parameter does not contain the XML encoding for an instance of the same type as the current instance.
-or-
The version number of the elem
parameter is not supported.
Remarks
Custom code that extends security objects needs to implement the ToXml and FromXml methods to make the objects security-encodable.
Notes to Implementers
You must override this method in a derived class.