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
- StylusCaptureWithinProperty.cs
- XamlPoint3DCollectionSerializer.cs
- SoapExtensionTypeElementCollection.cs
- ZoneLinkButton.cs
- HtmlTitle.cs
- OpCodes.cs
- HashSet.cs
- SubpageParagraph.cs
- X509CertificateEndpointIdentity.cs
- Constants.cs
- ScaleTransform.cs
- DesignerDataTableBase.cs
- ToolStripTextBox.cs
- ProxyWebPart.cs
- MouseEvent.cs
- PipelineComponent.cs
- ListItemCollection.cs
- PersonalizationProvider.cs
- LayoutTableCell.cs
- SignedPkcs7.cs
- ConfigPathUtility.cs
- TextLineResult.cs
- IIS7WorkerRequest.cs
- CompositeKey.cs
- SchemaMapping.cs
- PointValueSerializer.cs
- ConfigXmlDocument.cs
- DataTemplate.cs
- ViewLoader.cs
- WorkflowTimerService.cs
- ToolStripItemImageRenderEventArgs.cs
- SerializationSectionGroup.cs
- WindowsBrush.cs
- CommandSet.cs
- NodeFunctions.cs
- ParserHooks.cs
- Style.cs
- XmlAnyElementAttribute.cs
- OdbcStatementHandle.cs
- NamespaceInfo.cs
- SrgsGrammarCompiler.cs
- ListViewDataItem.cs
- CryptoApi.cs
- SoapSchemaMember.cs
- EntityDataSourceSelectingEventArgs.cs
- PenContext.cs
- ContextStack.cs
- FileRecordSequenceCompletedAsyncResult.cs
- HostedBindingBehavior.cs
- OptimizerPatterns.cs
- Processor.cs
- MessagePropertyFilter.cs
- ModifierKeysValueSerializer.cs
- SamlDelegatingWriter.cs
- FunctionUpdateCommand.cs
- TimestampInformation.cs
- Schedule.cs
- StickyNoteAnnotations.cs
- DataMemberConverter.cs
- BaseCollection.cs
- KoreanLunisolarCalendar.cs
- ConnectionProviderAttribute.cs
- DateTimeSerializationSection.cs
- XmlSchemaInfo.cs
- UTF32Encoding.cs
- XmlTextReaderImpl.cs
- ModuleConfigurationInfo.cs
- SafeLibraryHandle.cs
- XhtmlBasicListAdapter.cs
- ValidateNames.cs
- MulticastDelegate.cs
- ImageBrush.cs
- CookieParameter.cs
- RegexCharClass.cs
- BamlLocalizableResource.cs
- TextComposition.cs
- GridViewPageEventArgs.cs
- SQLSingleStorage.cs
- FontCacheUtil.cs
- URLEditor.cs
- compensatingcollection.cs
- FrameworkContextData.cs
- DecoderReplacementFallback.cs
- SelectionProviderWrapper.cs
- cache.cs
- VariableAction.cs
- DataServices.cs
- OrCondition.cs
- OleDbRowUpdatingEvent.cs
- KeyBinding.cs
- ConfigurationException.cs
- SqlFileStream.cs
- InternalsVisibleToAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- CompletedAsyncResult.cs
- RightNameExpirationInfoPair.cs
- StoreAnnotationsMap.cs
- QilTernary.cs
- InvariantComparer.cs
- HashHelper.cs