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
- GroupBoxRenderer.cs
- XPathNodeInfoAtom.cs
- CalendarDesigner.cs
- DrawingCollection.cs
- StyleSelector.cs
- SoapClientMessage.cs
- DocumentOrderComparer.cs
- SslStreamSecurityUpgradeProvider.cs
- figurelengthconverter.cs
- DocumentAutomationPeer.cs
- DesignerVerbToolStripMenuItem.cs
- CodeDefaultValueExpression.cs
- WizardPanel.cs
- Root.cs
- Accessible.cs
- EditorZone.cs
- WebPartEditorCancelVerb.cs
- ChangePasswordAutoFormat.cs
- DataSourceSelectArguments.cs
- DrawToolTipEventArgs.cs
- OracleInternalConnection.cs
- DockPattern.cs
- SqlCharStream.cs
- SettingsPropertyIsReadOnlyException.cs
- AppDomainShutdownMonitor.cs
- EditorBrowsableAttribute.cs
- TrackingMemoryStream.cs
- MarkedHighlightComponent.cs
- PatternMatcher.cs
- TableItemProviderWrapper.cs
- _LocalDataStore.cs
- UpdateCompiler.cs
- UpdateTracker.cs
- ListenerSessionConnectionReader.cs
- TypeSystem.cs
- ColorConvertedBitmapExtension.cs
- InkCanvasInnerCanvas.cs
- DataRowChangeEvent.cs
- ReturnEventArgs.cs
- SwitchAttribute.cs
- QuaternionConverter.cs
- RelativeSource.cs
- BuildResultCache.cs
- LocationInfo.cs
- DataGridViewRowConverter.cs
- GeometryHitTestResult.cs
- GlobalItem.cs
- KeyValuePairs.cs
- ComponentResourceKey.cs
- TemplateXamlParser.cs
- ToolStripManager.cs
- ParameterSubsegment.cs
- ConfigsHelper.cs
- PriorityItem.cs
- DataRowView.cs
- XPathDocument.cs
- OfTypeExpression.cs
- DecoderNLS.cs
- StorageComplexPropertyMapping.cs
- OleDbEnumerator.cs
- RectAnimationBase.cs
- SByteStorage.cs
- ConstrainedDataObject.cs
- RawStylusInputCustomDataList.cs
- SplitterCancelEvent.cs
- TextTrailingCharacterEllipsis.cs
- AlphaSortedEnumConverter.cs
- ExternalFile.cs
- ExpressionValueEditor.cs
- DatagramAdapter.cs
- SHA1CryptoServiceProvider.cs
- UnmanagedBitmapWrapper.cs
- OutputCacheProfileCollection.cs
- TextDocumentView.cs
- TreeNodeCollectionEditorDialog.cs
- HashHelper.cs
- ToolboxItemCollection.cs
- JumpPath.cs
- SpellCheck.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Stylesheet.cs
- MultilineStringConverter.cs
- DetailsView.cs
- WebPartConnectionsEventArgs.cs
- ValidatorAttribute.cs
- PasswordTextContainer.cs
- TimeSpanStorage.cs
- DecimalConstantAttribute.cs
- SeverityFilter.cs
- DisplayNameAttribute.cs
- RawMouseInputReport.cs
- ThumbAutomationPeer.cs
- ControlCollection.cs
- SqlCommandSet.cs
- WebPartZoneBaseDesigner.cs
- NetDataContractSerializer.cs
- SqlUserDefinedTypeAttribute.cs
- SmiRecordBuffer.cs
- SharedConnectionInfo.cs
- ClientRolePrincipal.cs