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
- DbFunctionCommandTree.cs
- GridViewEditEventArgs.cs
- Pkcs9Attribute.cs
- TimerElapsedEvenArgs.cs
- FamilyMap.cs
- XmlSchemaIdentityConstraint.cs
- SmtpCommands.cs
- InfoCardKeyedHashAlgorithm.cs
- NamespaceInfo.cs
- Int32Rect.cs
- TextEditorTables.cs
- HealthMonitoringSection.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SymbolTable.cs
- TypedTableBaseExtensions.cs
- MLangCodePageEncoding.cs
- HtmlInputButton.cs
- documentsequencetextcontainer.cs
- EventQueueState.cs
- ClientSettings.cs
- ToolTipAutomationPeer.cs
- SurrogateEncoder.cs
- InitializationEventAttribute.cs
- TableRowsCollectionEditor.cs
- ImageButton.cs
- XPathDocument.cs
- EncodingDataItem.cs
- BuildProvider.cs
- sapiproxy.cs
- PartialList.cs
- StrokeNodeOperations2.cs
- TagNameToTypeMapper.cs
- DataBoundLiteralControl.cs
- SecuritySessionServerSettings.cs
- GroupItem.cs
- ModuleBuilder.cs
- LinqDataSource.cs
- ExtendedPropertyDescriptor.cs
- DiagnosticSection.cs
- HtmlTableCellCollection.cs
- InkCanvas.cs
- FixedDocument.cs
- TemplatePartAttribute.cs
- TemplatedWizardStep.cs
- OleDbWrapper.cs
- DecimalConstantAttribute.cs
- RegistrySecurity.cs
- xml.cs
- DataGridClipboardHelper.cs
- FileReader.cs
- StaticExtension.cs
- validation.cs
- CodePropertyReferenceExpression.cs
- SpnEndpointIdentity.cs
- HttpPostServerProtocol.cs
- Validator.cs
- EntityDataSourceDataSelection.cs
- CircleHotSpot.cs
- HtmlControlDesigner.cs
- Matrix.cs
- AuthenticationException.cs
- EntityDataSourceStatementEditorForm.cs
- SafeNativeMethods.cs
- SubtreeProcessor.cs
- EmptyEnumerator.cs
- EditCommandColumn.cs
- BrowserCapabilitiesCodeGenerator.cs
- TextEditor.cs
- MulticastIPAddressInformationCollection.cs
- XamlToRtfWriter.cs
- ConfigViewGenerator.cs
- UnsupportedPolicyOptionsException.cs
- GeometryModel3D.cs
- TrackingRecord.cs
- HttpsHostedTransportConfiguration.cs
- StyleCollection.cs
- PersonalizationState.cs
- LingerOption.cs
- DeclaredTypeElement.cs
- OutputCacheProfileCollection.cs
- StateMachineWorkflow.cs
- SecurityUniqueId.cs
- ItemAutomationPeer.cs
- ScriptReferenceBase.cs
- ReplyAdapterChannelListener.cs
- AssociationSet.cs
- ViewBase.cs
- OracleParameter.cs
- SafeReversePInvokeHandle.cs
- SqlCacheDependency.cs
- ScrollableControl.cs
- indexingfiltermarshaler.cs
- BitmapSource.cs
- ContentPresenter.cs
- XmlLinkedNode.cs
- URLMembershipCondition.cs
- AssemblyBuilder.cs
- UInt32Storage.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- InteropBitmapSource.cs