Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.Mail/SmtpMail.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Mail/SmtpMail.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.Mail/SmtpMail.cs b/mcs/class/System.Web/System.Web.Mail/SmtpMail.cs
index 7e6042c0268..c074f44e2fb 100644
--- a/mcs/class/System.Web/System.Web.Mail/SmtpMail.cs
+++ b/mcs/class/System.Web/System.Web.Mail/SmtpMail.cs
@@ -36,6 +36,9 @@ using System.Security.Permissions;
namespace System.Web.Mail
{
+#if NET_2_0
+#pragma warning disable 618
+#endif
// CAS
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
@@ -119,4 +122,7 @@ namespace System.Web.Mail
Send (message);
}
}
+#if NET_2_0
+#pragma warning restore 618
+#endif
}