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
- SqlInternalConnection.cs
- XmlILOptimizerVisitor.cs
- Random.cs
- IntPtr.cs
- DataControlFieldHeaderCell.cs
- TTSVoice.cs
- VisualTreeHelper.cs
- ComponentRenameEvent.cs
- QilVisitor.cs
- CorrelationResolver.cs
- SQLDoubleStorage.cs
- Underline.cs
- TableLayoutRowStyleCollection.cs
- CodeIterationStatement.cs
- SQLSingle.cs
- SignedXml.cs
- ArrangedElementCollection.cs
- KeyedCollection.cs
- SqlDataSourceCommandEventArgs.cs
- Internal.cs
- HttpContextWrapper.cs
- BuildResult.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- InstancePersistenceEvent.cs
- JulianCalendar.cs
- HostingEnvironmentException.cs
- ScriptRef.cs
- AsyncCompletedEventArgs.cs
- Expressions.cs
- InputBinding.cs
- StringValidatorAttribute.cs
- PhysicalFontFamily.cs
- SingleTagSectionHandler.cs
- ContextMarshalException.cs
- ToolStripItemRenderEventArgs.cs
- JumpItem.cs
- DictionarySectionHandler.cs
- TextProperties.cs
- Baml2006ReaderContext.cs
- DrawingGroup.cs
- DelimitedListTraceListener.cs
- BamlLocalizableResourceKey.cs
- XsdCachingReader.cs
- IndexOutOfRangeException.cs
- SingleQueryOperator.cs
- Comparer.cs
- ReadOnlyDictionary.cs
- TypeNameConverter.cs
- TextDecorations.cs
- DataServiceQueryProvider.cs
- LocalizabilityAttribute.cs
- XmlEventCache.cs
- AuthenticationService.cs
- COSERVERINFO.cs
- MarkupCompilePass2.cs
- WebPartsPersonalization.cs
- Win32KeyboardDevice.cs
- Deflater.cs
- JsonUriDataContract.cs
- Rect.cs
- WebServiceHostFactory.cs
- EmbeddedMailObjectsCollection.cs
- Label.cs
- ReverseQueryOperator.cs
- DataBinder.cs
- AccessText.cs
- Lasso.cs
- DeclarativeExpressionConditionDeclaration.cs
- PowerStatus.cs
- OdbcReferenceCollection.cs
- CaseExpr.cs
- MulticastOption.cs
- SamlNameIdentifierClaimResource.cs
- HttpCookie.cs
- SqlFlattener.cs
- RefreshEventArgs.cs
- RuntimeDelegateArgument.cs
- BasicHttpBindingElement.cs
- Operators.cs
- XmlNodeReader.cs
- RadioButton.cs
- BinaryConverter.cs
- UserUseLicenseDictionaryLoader.cs
- RegexParser.cs
- ControlBindingsCollection.cs
- ProjectionPlan.cs
- EncryptedPackage.cs
- HyperLinkStyle.cs
- WmlControlAdapter.cs
- PageThemeBuildProvider.cs
- FormatConvertedBitmap.cs
- updateconfighost.cs
- TableParagraph.cs
- XmlArrayAttribute.cs
- Color.cs
- FileIOPermission.cs
- DbDataReader.cs
- PriorityChain.cs
- RenderContext.cs
- WebBrowserPermission.cs