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
- ExecutionEngineException.cs
- OdbcPermission.cs
- EncoderExceptionFallback.cs
- HostingEnvironmentSection.cs
- Utils.cs
- SourceFileBuildProvider.cs
- ObjectSelectorEditor.cs
- ResourceSet.cs
- DragEventArgs.cs
- SectionInformation.cs
- RadioButtonRenderer.cs
- ServiceObjectContainer.cs
- MissingSatelliteAssemblyException.cs
- coordinator.cs
- RuntimeConfig.cs
- MetafileHeader.cs
- clipboard.cs
- AppDomain.cs
- TreeNodeBindingCollection.cs
- DataGridAutoFormat.cs
- InvalidDataException.cs
- nulltextcontainer.cs
- Random.cs
- PinnedBufferMemoryStream.cs
- FamilyMap.cs
- ConnectionPointGlyph.cs
- ConfigurationManagerInternal.cs
- ToolStripStatusLabel.cs
- CompositeTypefaceMetrics.cs
- FullTextLine.cs
- WindowInteractionStateTracker.cs
- BasicCellRelation.cs
- DataControlLinkButton.cs
- BamlLocalizabilityResolver.cs
- NamedPermissionSet.cs
- KeyEvent.cs
- PerfCounterSection.cs
- ShapeTypeface.cs
- ObjectMaterializedEventArgs.cs
- FileUtil.cs
- _PooledStream.cs
- lengthconverter.cs
- CurrentChangingEventArgs.cs
- TableRowGroup.cs
- BamlStream.cs
- ReceiveContext.cs
- UnicastIPAddressInformationCollection.cs
- DbDataSourceEnumerator.cs
- CompilationUtil.cs
- SmiEventSink.cs
- Encoding.cs
- DesignerCategoryAttribute.cs
- smtpconnection.cs
- _ListenerRequestStream.cs
- ImpersonateTokenRef.cs
- TextBlockAutomationPeer.cs
- AutomationEventArgs.cs
- ELinqQueryState.cs
- _LocalDataStoreMgr.cs
- StorageInfo.cs
- DBDataPermissionAttribute.cs
- TextLineBreak.cs
- CssClassPropertyAttribute.cs
- GeneralTransform3DCollection.cs
- DrawTreeNodeEventArgs.cs
- MouseEvent.cs
- ScaleTransform.cs
- XmlSchemaSimpleTypeList.cs
- GroupQuery.cs
- DragDropManager.cs
- GlobalizationSection.cs
- ADMembershipUser.cs
- Odbc32.cs
- TextEditorSpelling.cs
- MetaData.cs
- MaskedTextBoxTextEditorDropDown.cs
- XmlSchemaAttributeGroupRef.cs
- _FtpControlStream.cs
- HttpListenerRequestTraceRecord.cs
- TdsValueSetter.cs
- ResourceManager.cs
- PersonalizableTypeEntry.cs
- HttpRequestCacheValidator.cs
- PathGradientBrush.cs
- QueryInterceptorAttribute.cs
- ObjectSpanRewriter.cs
- ComplexLine.cs
- ControlCollection.cs
- HtmlElementCollection.cs
- PermissionAttributes.cs
- PropertyPathWorker.cs
- TextContainerChangedEventArgs.cs
- DataGridViewColumnCollection.cs
- HtmlInputRadioButton.cs
- ImageListDesigner.cs
- Material.cs
- SqlBuilder.cs
- EpmTargetPathSegment.cs
- WebPartConnection.cs
- SiteMapNodeCollection.cs