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
- XMLUtil.cs
- MobileFormsAuthentication.cs
- RtfToXamlReader.cs
- SQLMoney.cs
- IRCollection.cs
- Codec.cs
- ReliableRequestSessionChannel.cs
- CapabilitiesRule.cs
- Win32.cs
- LayoutDump.cs
- TextChangedEventArgs.cs
- FtpWebResponse.cs
- Number.cs
- DataStreamFromComStream.cs
- SelectionHighlightInfo.cs
- UIAgentMonitorHandle.cs
- Tuple.cs
- Rect3DValueSerializer.cs
- Effect.cs
- GeneralTransform3DGroup.cs
- RowToParametersTransformer.cs
- ErrorRuntimeConfig.cs
- SpeechUI.cs
- CompiledXpathExpr.cs
- FtpWebRequest.cs
- ThreadStartException.cs
- DeviceSpecificChoiceCollection.cs
- SafeTokenHandle.cs
- XmlSchemaObject.cs
- LinkUtilities.cs
- ComponentConverter.cs
- SmiRecordBuffer.cs
- COM2Enum.cs
- ModifiableIteratorCollection.cs
- WebColorConverter.cs
- XpsSerializerFactory.cs
- DesignerListAdapter.cs
- DependencyPropertyAttribute.cs
- SafeSecurityHandles.cs
- SmtpNegotiateAuthenticationModule.cs
- ArrayTypeMismatchException.cs
- OdbcEnvironment.cs
- ImmutableCollection.cs
- DesignTimeVisibleAttribute.cs
- DockPatternIdentifiers.cs
- FormsIdentity.cs
- VisualStates.cs
- PeerReferralPolicy.cs
- MediaPlayerState.cs
- DateTime.cs
- DecoratedNameAttribute.cs
- CopyCodeAction.cs
- ColorTransform.cs
- Validator.cs
- MarkupExtensionParser.cs
- RichTextBoxAutomationPeer.cs
- BitmapEffectOutputConnector.cs
- HtmlInputControl.cs
- CounterCreationDataCollection.cs
- BitmapEncoder.cs
- TransformGroup.cs
- WhitespaceRule.cs
- AutomationIdentifier.cs
- BidOverLoads.cs
- COM2FontConverter.cs
- WebPartZoneBaseDesigner.cs
- SettingsBase.cs
- XmlDataCollection.cs
- SqlCrossApplyToCrossJoin.cs
- CharacterHit.cs
- CommandBindingCollection.cs
- xamlnodes.cs
- OleStrCAMarshaler.cs
- MessagingActivityHelper.cs
- LayoutUtils.cs
- EntityParameterCollection.cs
- WmlControlAdapter.cs
- TypeConverterHelper.cs
- SourceInterpreter.cs
- ListControl.cs
- KeyInfo.cs
- SmiContextFactory.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- formatstringdialog.cs
- DataGridTextColumn.cs
- CategoryEditor.cs
- ProfessionalColors.cs
- regiisutil.cs
- formatter.cs
- DbReferenceCollection.cs
- RegexBoyerMoore.cs
- TableFieldsEditor.cs
- RegistryPermission.cs
- ButtonBaseDesigner.cs
- ToolboxSnapDragDropEventArgs.cs
- CodeVariableReferenceExpression.cs
- XmlDataLoader.cs
- RefreshEventArgs.cs
- DoubleCollection.cs
- InfoCardSymmetricAlgorithm.cs