Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 2 / EmbeddedMailObject.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Security.Permissions; using System.Web.Mail; using System.Collections; using System.ComponentModel; using System.Globalization; using System.IO; using System.Drawing.Design; using System.Web; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [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. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Security.Permissions; using System.Web.Mail; using System.Collections; using System.ComponentModel; using System.Globalization; using System.IO; using System.Drawing.Design; using System.Web; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckedListBox.cs
- XmlTextEncoder.cs
- Literal.cs
- ColumnMapProcessor.cs
- CommandValueSerializer.cs
- PropertyGrid.cs
- DriveNotFoundException.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- StatusBarDesigner.cs
- graph.cs
- base64Transforms.cs
- Event.cs
- SignatureResourcePool.cs
- ISAPIApplicationHost.cs
- ContentType.cs
- OdbcCommand.cs
- XmlIncludeAttribute.cs
- DependencyPropertyKind.cs
- NoClickablePointException.cs
- DesignConnection.cs
- CollectionViewSource.cs
- EventLogPermission.cs
- ViewSimplifier.cs
- SQLMoney.cs
- CustomTypeDescriptor.cs
- AssemblyAttributesGoHere.cs
- Column.cs
- FixedTextBuilder.cs
- XamlRtfConverter.cs
- AppearanceEditorPart.cs
- PlainXmlSerializer.cs
- RbTree.cs
- AppDomainUnloadedException.cs
- DispatcherOperation.cs
- BooleanSwitch.cs
- XmlSchemaSet.cs
- Splitter.cs
- PolicyLevel.cs
- ResourceDescriptionAttribute.cs
- PrimitiveDataContract.cs
- FamilyTypeface.cs
- Rss20FeedFormatter.cs
- PropertyChangeTracker.cs
- WebServiceClientProxyGenerator.cs
- SystemIPGlobalProperties.cs
- itemelement.cs
- DataSourceIDConverter.cs
- PackWebRequest.cs
- GridViewHeaderRowPresenter.cs
- ConnectionPoint.cs
- XmlArrayAttribute.cs
- OdbcConnectionPoolProviderInfo.cs
- arabicshape.cs
- ExpandoClass.cs
- CSharpCodeProvider.cs
- KnowledgeBase.cs
- ManipulationLogic.cs
- CellParagraph.cs
- ReadOnlyCollection.cs
- CompilationLock.cs
- FileSystemInfo.cs
- Int64.cs
- TimeoutValidationAttribute.cs
- PropagatorResult.cs
- ConfigsHelper.cs
- XmlReflectionImporter.cs
- ControlUtil.cs
- ValidationSummary.cs
- DNS.cs
- TextBoxBaseDesigner.cs
- XmlQueryContext.cs
- FormViewInsertEventArgs.cs
- CustomAttribute.cs
- MasterPage.cs
- MulticastNotSupportedException.cs
- PopupControlService.cs
- MatrixUtil.cs
- PageThemeBuildProvider.cs
- TextDecoration.cs
- HtmlInputControl.cs
- VisualStyleTypesAndProperties.cs
- XXXInfos.cs
- ToolTip.cs
- MULTI_QI.cs
- _ProxyRegBlob.cs
- BindingMAnagerBase.cs
- InsufficientMemoryException.cs
- Odbc32.cs
- XMLUtil.cs
- CustomWebEventKey.cs
- SynchronizingStream.cs
- XXXOnTypeBuilderInstantiation.cs
- SafeRightsManagementQueryHandle.cs
- SoapFaultCodes.cs
- EventlogProvider.cs
- _ProxyRegBlob.cs
- ScriptControlManager.cs
- PeerEndPoint.cs
- ParallelTimeline.cs
- ConfigPathUtility.cs