Export (0) Print
Expand All

AspNetHostingPermission.FromXml Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Reconstructs a security object with a specified state from an XML encoding.

[Visual Basic]
Overrides Public Sub FromXml( _
   ByVal securityElement As SecurityElement _
) Implements ISecurityEncodable.FromXml
[C#]
public override void FromXml(
 SecurityElement securityElement
);
[C++]
public: void FromXml(
 SecurityElement* securityElement
);
[JScript]
public override function FromXml(
   securityElement : SecurityElement
);

Parameters

securityElement
The SecurityElement containing the XML encoding to use to reconstruct the security object.

Implements

ISecurityEncodable.FromXml

Exceptions

Exception Type Condition
ArgumentNullException securityElement is null.
ArgumentException The System.Security.securityElement.Tag attribute of securityElement is not IPermission

- or-

The class System.Security.securityElement.Attribute of securityElement is null or an empty string.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

AspNetHostingPermission Class | AspNetHostingPermission Members | System.Web Namespace

Show:
© 2015 Microsoft