Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 2 / EmbeddedMailObject.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Security.Permissions; using System.Web.Mail; using System.Collections; using System.ComponentModel; using System.Globalization; using System.IO; using System.Drawing.Design; using System.Web; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [TypeConverter(typeof(EmbeddedMailObjectTypeConverter))] public sealed class EmbeddedMailObject { private string _path; private string _name; public EmbeddedMailObject() { } public EmbeddedMailObject(string name, string path) { Name = name; Path = path; } [ WebCategory("Behavior"), DefaultValue(""), WebSysDescription(SR.EmbeddedMailObject_Name), NotifyParentProperty(true) ] public string Name { get { return (_name != null) ? _name : String.Empty; } set { _name = value; } } [ WebCategory("Behavior"), DefaultValue(""), WebSysDescription(SR.EmbeddedMailObject_Path), Editor("System.Web.UI.Design.MailFileEditor, " + AssemblyRef.SystemDesign, typeof(UITypeEditor)), NotifyParentProperty(true), UrlProperty(), ] public string Path { get { return (_path == null) ? String.Empty : _path; } set { _path = value; } } private sealed class EmbeddedMailObjectTypeConverter : TypeConverter { public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return "EmbeddedMailObject"; } return base.ConvertTo(context, culture, value, destinationType); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Security.Permissions; using System.Web.Mail; using System.Collections; using System.ComponentModel; using System.Globalization; using System.IO; using System.Drawing.Design; using System.Web; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [TypeConverter(typeof(EmbeddedMailObjectTypeConverter))] public sealed class EmbeddedMailObject { private string _path; private string _name; public EmbeddedMailObject() { } public EmbeddedMailObject(string name, string path) { Name = name; Path = path; } [ WebCategory("Behavior"), DefaultValue(""), WebSysDescription(SR.EmbeddedMailObject_Name), NotifyParentProperty(true) ] public string Name { get { return (_name != null) ? _name : String.Empty; } set { _name = value; } } [ WebCategory("Behavior"), DefaultValue(""), WebSysDescription(SR.EmbeddedMailObject_Path), Editor("System.Web.UI.Design.MailFileEditor, " + AssemblyRef.SystemDesign, typeof(UITypeEditor)), NotifyParentProperty(true), UrlProperty(), ] public string Path { get { return (_path == null) ? String.Empty : _path; } set { _path = value; } } private sealed class EmbeddedMailObjectTypeConverter : TypeConverter { public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return "EmbeddedMailObject"; } return base.ConvertTo(context, culture, value, destinationType); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextOutput.cs
- QueryNode.cs
- MaskedTextBox.cs
- InvalidateEvent.cs
- AssemblyUtil.cs
- XmlChoiceIdentifierAttribute.cs
- RtfToXamlReader.cs
- LassoSelectionBehavior.cs
- IRCollection.cs
- XmlCharType.cs
- Comparer.cs
- ExpressionBinding.cs
- BinaryUtilClasses.cs
- PlatformCulture.cs
- CodeStatement.cs
- UmAlQuraCalendar.cs
- Light.cs
- CompositeClientFormatter.cs
- Helper.cs
- ScrollItemProviderWrapper.cs
- BufferModeSettings.cs
- WebPartConnectionsCloseVerb.cs
- ParseNumbers.cs
- SecurityPolicySection.cs
- EventSinkHelperWriter.cs
- ipaddressinformationcollection.cs
- CategoryNameCollection.cs
- XmlAttributeProperties.cs
- OpenTypeLayout.cs
- _Semaphore.cs
- LoginName.cs
- KeyedCollection.cs
- TableRowGroupCollection.cs
- HitTestDrawingContextWalker.cs
- Win32Exception.cs
- HostSecurityManager.cs
- FtpRequestCacheValidator.cs
- Calendar.cs
- CommonObjectSecurity.cs
- TCPClient.cs
- XmlNamespaceManager.cs
- LinkButton.cs
- cookiecollection.cs
- MachineKeyConverter.cs
- Decimal.cs
- SelectionItemPattern.cs
- XmlSchema.cs
- WorkingDirectoryEditor.cs
- DataRow.cs
- TransactionsSectionGroup.cs
- MessageLoggingFilterTraceRecord.cs
- TagPrefixAttribute.cs
- PathStreamGeometryContext.cs
- PolyBezierSegmentFigureLogic.cs
- AdornerHitTestResult.cs
- TreeViewDesigner.cs
- ApplicationSettingsBase.cs
- UserMapPath.cs
- ClipboardProcessor.cs
- __Filters.cs
- XmlCDATASection.cs
- OdbcCommandBuilder.cs
- AuthorizationPolicyTypeElement.cs
- XmlSignificantWhitespace.cs
- SvcMapFile.cs
- HttpBrowserCapabilitiesBase.cs
- ToolboxItemFilterAttribute.cs
- TypeSystemProvider.cs
- WebSysDefaultValueAttribute.cs
- ContainerFilterService.cs
- ClientFormsIdentity.cs
- CryptoHelper.cs
- OracleRowUpdatingEventArgs.cs
- SqlPersonalizationProvider.cs
- Vector.cs
- PrimitiveSchema.cs
- RequestCacheValidator.cs
- HttpModulesSection.cs
- DynamicILGenerator.cs
- XsltException.cs
- DataGridColumnReorderingEventArgs.cs
- RangeValidator.cs
- CollectionView.cs
- SessionStateItemCollection.cs
- DecoderBestFitFallback.cs
- Int32RectValueSerializer.cs
- LoaderAllocator.cs
- UIElement3DAutomationPeer.cs
- ResourceReferenceKeyNotFoundException.cs
- PassportAuthentication.cs
- ToolStripPanelRow.cs
- AppDomain.cs
- LocatorGroup.cs
- BufferedStream.cs
- CodePageEncoding.cs
- MatchingStyle.cs
- TrackBar.cs
- SchemaImporterExtensionElementCollection.cs
- MenuStrip.cs
- GACMembershipCondition.cs