Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataRowCollection.cs
- NotSupportedException.cs
- BrowserTree.cs
- PromptStyle.cs
- DropSource.cs
- WorkflowMessageEventArgs.cs
- HtmlUtf8RawTextWriter.cs
- Utils.cs
- DataGridPagerStyle.cs
- OutputCacheModule.cs
- RecordsAffectedEventArgs.cs
- SecurityUtils.cs
- XmlName.cs
- XmlQueryTypeFactory.cs
- TraceContextEventArgs.cs
- ManipulationCompletedEventArgs.cs
- ZipIOLocalFileBlock.cs
- TypefaceMap.cs
- ChineseLunisolarCalendar.cs
- ValidationResult.cs
- Menu.cs
- SafeMarshalContext.cs
- WindowExtensionMethods.cs
- BitmapInitialize.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SqlCachedBuffer.cs
- CursorConverter.cs
- ApplicationHost.cs
- InertiaTranslationBehavior.cs
- SqlInternalConnection.cs
- AspCompat.cs
- TextCollapsingProperties.cs
- PropertyGrid.cs
- VersionedStreamOwner.cs
- NavigatorInvalidBodyAccessException.cs
- TextTreeTextBlock.cs
- Attribute.cs
- ElementHostPropertyMap.cs
- PropertyKey.cs
- DataRelation.cs
- ContextStack.cs
- PanelDesigner.cs
- BoolExpression.cs
- AuthenticatingEventArgs.cs
- RegexCharClass.cs
- Int32CollectionValueSerializer.cs
- Int32Storage.cs
- CodeArrayCreateExpression.cs
- TimeStampChecker.cs
- CapabilitiesRule.cs
- ImageBrush.cs
- MethodBuilderInstantiation.cs
- DataGridToolTip.cs
- UDPClient.cs
- IDReferencePropertyAttribute.cs
- TextDpi.cs
- _SecureChannel.cs
- QuaternionAnimationBase.cs
- EntityCommandCompilationException.cs
- EUCJPEncoding.cs
- Typography.cs
- HtmlGenericControl.cs
- PriorityItem.cs
- EpmContentSerializer.cs
- Membership.cs
- XmlSchemaSubstitutionGroup.cs
- GenericRootAutomationPeer.cs
- StateItem.cs
- UniqueConstraint.cs
- TextEditorTables.cs
- Trustee.cs
- OleDbPermission.cs
- StoreItemCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- ApplicationActivator.cs
- NullableFloatAverageAggregationOperator.cs
- _emptywebproxy.cs
- CompilerScope.cs
- DocumentOrderQuery.cs
- SiteOfOriginPart.cs
- EncryptedPackageFilter.cs
- VideoDrawing.cs
- FormClosedEvent.cs
- Freezable.cs
- figurelengthconverter.cs
- ToolStripDropDownItem.cs
- Constants.cs
- SqlNode.cs
- SeparatorAutomationPeer.cs
- Light.cs
- PageAsyncTask.cs
- Route.cs
- PointLightBase.cs
- EdmValidator.cs
- URLIdentityPermission.cs
- BitStack.cs
- Win32.cs
- ReservationNotFoundException.cs
- ADMembershipUser.cs
- HttpCapabilitiesBase.cs