System.Net.WebPermission.ToXml Method

Creates an XML encoding of a System.Net.WebPermission and its current state.

Syntax

public override System.Security.SecurityElement ToXml ()

Returns

A System.Security.SecurityElement that contains an XML-encoded representation of the System.Net.WebPermission, including state information.

Remarks

Use the WebPermission.FromXml(System.Security.SecurityElement) method to restore the state information from a System.Security.SecurityElement.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0