System.Net.Mail.SmtpPermission.FromXml Method

Sets the state of the permission using the specified XML encoding.

Syntax

public override void FromXml (System.Security.SecurityElement securityElement)

Parameters

securityElement
The XML encoding to use to set the state 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