Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbConnectionPool.cs
- StringSource.cs
- DataGridViewCellEventArgs.cs
- ShapeTypeface.cs
- CodeMethodReturnStatement.cs
- WebBrowserNavigatingEventHandler.cs
- DependsOnAttribute.cs
- XmlSchemaChoice.cs
- UIElementIsland.cs
- DbInsertCommandTree.cs
- HScrollBar.cs
- Soap.cs
- ObfuscateAssemblyAttribute.cs
- SecurityToken.cs
- ConfigurationStrings.cs
- NetWebProxyFinder.cs
- Internal.cs
- KeyValueConfigurationElement.cs
- EditableRegion.cs
- MemberMaps.cs
- Renderer.cs
- AuthenticateEventArgs.cs
- WebControlsSection.cs
- ObjectManager.cs
- DbConnectionPool.cs
- ImageButton.cs
- CompositeScriptReference.cs
- DataGridRowDetailsEventArgs.cs
- CommandSet.cs
- XpsS0ValidatingLoader.cs
- Vector3dCollection.cs
- XmlProcessingInstruction.cs
- TransformPattern.cs
- PersonalizationStateInfoCollection.cs
- Int32Animation.cs
- DetailsViewCommandEventArgs.cs
- UserPersonalizationStateInfo.cs
- DataGridItemEventArgs.cs
- MarshalByRefObject.cs
- WpfWebRequestHelper.cs
- NestPullup.cs
- WmiEventSink.cs
- SafeCryptHandles.cs
- Point3D.cs
- LongValidatorAttribute.cs
- _AutoWebProxyScriptWrapper.cs
- Condition.cs
- PaintEvent.cs
- AssertFilter.cs
- LeafCellTreeNode.cs
- ItemsControl.cs
- ToolBarTray.cs
- ContainerParaClient.cs
- PropertyDescriptorComparer.cs
- ClientClassGenerator.cs
- TextParagraphProperties.cs
- IdleTimeoutMonitor.cs
- ComplexObject.cs
- Wizard.cs
- HTTPNotFoundHandler.cs
- FileChangesMonitor.cs
- PseudoWebRequest.cs
- sqlcontext.cs
- DesignerTextViewAdapter.cs
- DbExpressionVisitor.cs
- PersonalizationStateInfo.cs
- BrowserCapabilitiesCodeGenerator.cs
- ImageInfo.cs
- MetricEntry.cs
- BuildProvidersCompiler.cs
- _RequestLifetimeSetter.cs
- CodeExporter.cs
- AssemblyAttributes.cs
- SessionEndedEventArgs.cs
- Descriptor.cs
- ModelUtilities.cs
- StateRuntime.cs
- SoapSchemaMember.cs
- OutputCacheSettingsSection.cs
- Win32KeyboardDevice.cs
- CustomExpressionEventArgs.cs
- Help.cs
- QilIterator.cs
- AnimationLayer.cs
- SmiTypedGetterSetter.cs
- HtmlInputSubmit.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SafeNativeMethods.cs
- XmlEntity.cs
- ChangePassword.cs
- QuaternionValueSerializer.cs
- RadioButtonPopupAdapter.cs
- StandardOleMarshalObject.cs
- XmlNamespaceDeclarationsAttribute.cs
- ScaleTransform3D.cs
- WebRequestModulesSection.cs
- ADRoleFactoryConfiguration.cs
- ConnectionManagementElement.cs
- KeyToListMap.cs
- WinHttpWebProxyFinder.cs