Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 1305376 / EmbeddedMailObject.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Web.Mail; using System.Collections; using System.ComponentModel; using System.Globalization; using System.IO; using System.Drawing.Design; using System.Web; [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.Web.Mail; using System.Collections; using System.ComponentModel; using System.Globalization; using System.IO; using System.Drawing.Design; using System.Web; [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
- PathParser.cs
- ProjectedWrapper.cs
- MissingMemberException.cs
- ControlPropertyNameConverter.cs
- UpdatePanel.cs
- NumberFunctions.cs
- SelectionProviderWrapper.cs
- ServiceOperationParameter.cs
- PathData.cs
- RightsManagementUser.cs
- ListViewItemCollectionEditor.cs
- ZipIOLocalFileHeader.cs
- ServiceObjectContainer.cs
- DetailsViewModeEventArgs.cs
- FindCriteriaElement.cs
- XmlDigitalSignatureProcessor.cs
- ConnectionDemuxer.cs
- ColorComboBox.cs
- NotConverter.cs
- InOutArgument.cs
- UserControlAutomationPeer.cs
- FocusTracker.cs
- LineServices.cs
- Quaternion.cs
- HTTPNotFoundHandler.cs
- DesignerView.cs
- TableLayoutCellPaintEventArgs.cs
- TextRange.cs
- TextDecorationCollection.cs
- DateTimeConverter2.cs
- CoTaskMemSafeHandle.cs
- WorkflowLayouts.cs
- VirtualPathProvider.cs
- XamlStream.cs
- ObjectQueryExecutionPlan.cs
- TextDecorationLocationValidation.cs
- XmlParserContext.cs
- TextTreeExtractElementUndoUnit.cs
- Compiler.cs
- ConfigurationException.cs
- RulePatternOps.cs
- AgileSafeNativeMemoryHandle.cs
- RouteParameter.cs
- ViewCellSlot.cs
- ToolStripLabel.cs
- RuntimeHelpers.cs
- SafeLibraryHandle.cs
- TrueReadOnlyCollection.cs
- DLinqDataModelProvider.cs
- HwndTarget.cs
- UnsafeNativeMethods.cs
- RadioButtonPopupAdapter.cs
- LoadedEvent.cs
- CaseStatement.cs
- ParameterCollection.cs
- ShaperBuffers.cs
- BaseInfoTable.cs
- PropertyToken.cs
- EntityTypeBase.cs
- PolyBezierSegmentFigureLogic.cs
- WeakReferenceEnumerator.cs
- FieldNameLookup.cs
- WebBodyFormatMessageProperty.cs
- ToolStripContentPanelRenderEventArgs.cs
- BinaryObjectWriter.cs
- AutomationPatternInfo.cs
- Error.cs
- LoadMessageLogger.cs
- PageBreakRecord.cs
- DataBinder.cs
- WebControlsSection.cs
- SqlProviderServices.cs
- MetadataAssemblyHelper.cs
- PrintingPermission.cs
- HttpRequestCacheValidator.cs
- DataGridViewComboBoxCell.cs
- XmlObjectSerializerContext.cs
- CurrentChangingEventManager.cs
- XXXInfos.cs
- XmlDataSource.cs
- Vector3DAnimationUsingKeyFrames.cs
- NamedObject.cs
- ContextMarshalException.cs
- FileCodeGroup.cs
- DesignerVerbCollection.cs
- SubtreeProcessor.cs
- CircleHotSpot.cs
- ItemList.cs
- SqlDataSourceCommandEventArgs.cs
- DataContractSerializer.cs
- EditorPartChrome.cs
- SymDocumentType.cs
- StyleTypedPropertyAttribute.cs
- SafeMILHandle.cs
- SqlCharStream.cs
- CacheMemory.cs
- CalendarAutomationPeer.cs
- Control.cs
- TypeToken.cs
- Adorner.cs