ApplicationTrust.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.
Reconstructs an ApplicationTrust object with a given state from an XML encoding.
public:
virtual void FromXml(System::Security::SecurityElement ^ element);
public void FromXml (System.Security.SecurityElement element);
abstract member FromXml : System.Security.SecurityElement -> unit
override this.FromXml : System.Security.SecurityElement -> unit
Public Sub FromXml (element As SecurityElement)
Parameters
- element
- SecurityElement
The XML encoding to use to reconstruct the ApplicationTrust object.
Implements
Exceptions
element
is null
.
The XML encoding used for element
is invalid.
Remarks
Important
Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.
The ToXml and FromXml methods are implemented to make ApplicationTrust objects XML-encodable for security policy use.