Muokkaa

Jaa


ApplicationTrust.FromXml(SecurityElement) Method

Definition

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.

Applies to