System.Net.Mail.SmtpPermission.ToXml Method

Creates an XML encoding of the state of the permission.

Syntax

public override System.Security.SecurityElement ToXml ()

Returns

A System.Security.SecurityElement that contains an XML encoding of the current permission.

Remarks

This method is used by the security system and is not normally called by application code.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0