Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PersonalizationProvider.cs
- QueryCacheKey.cs
- RelationshipManager.cs
- OutputCacheModule.cs
- CodeObject.cs
- DataGridViewColumn.cs
- Msec.cs
- CachedFontFace.cs
- RealizationContext.cs
- Quad.cs
- LogPolicy.cs
- ProgressBarAutomationPeer.cs
- ImageMetadata.cs
- SynchronizationValidator.cs
- AppDomainFactory.cs
- TextWriter.cs
- HuffmanTree.cs
- RuleAttributes.cs
- IISUnsafeMethods.cs
- WindowsSecurityToken.cs
- TextDecorationCollection.cs
- SoapInteropTypes.cs
- SettingsPropertyWrongTypeException.cs
- Roles.cs
- AbstractSvcMapFileLoader.cs
- DataGridViewTextBoxEditingControl.cs
- KeyboardEventArgs.cs
- ZoneLinkButton.cs
- ProfileEventArgs.cs
- ProcessInputEventArgs.cs
- InvalidPipelineStoreException.cs
- CatalogPartCollection.cs
- WorkItem.cs
- NotificationContext.cs
- DynamicEndpoint.cs
- CertificateReferenceElement.cs
- PageCatalogPart.cs
- PropertyChangedEventManager.cs
- counter.cs
- KeyValueSerializer.cs
- AccessorTable.cs
- ChtmlTextBoxAdapter.cs
- CodeSubDirectoriesCollection.cs
- LogicalExpressionEditor.cs
- SamlDoNotCacheCondition.cs
- sqlpipe.cs
- XmlParserContext.cs
- BitmapDecoder.cs
- DataGridViewCell.cs
- ProfilePropertySettingsCollection.cs
- ShowExpandedMultiValueConverter.cs
- ApplicationSecurityInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- TextPattern.cs
- ActiveDocumentEvent.cs
- DictionaryBase.cs
- ScriptServiceAttribute.cs
- PolyBezierSegment.cs
- MonthCalendar.cs
- SecurityElement.cs
- WindowProviderWrapper.cs
- BuildResult.cs
- TypeNameParser.cs
- AnnotationService.cs
- MatrixValueSerializer.cs
- Converter.cs
- InvalidPropValue.cs
- ComponentResourceKey.cs
- DataGridPagerStyle.cs
- ArrangedElement.cs
- SelectionRangeConverter.cs
- NavigationProperty.cs
- SqlTypeConverter.cs
- ReadWriteSpinLock.cs
- WindowsListBox.cs
- LocatorManager.cs
- NameValueConfigurationElement.cs
- NameValueCollection.cs
- RequestCacheManager.cs
- GridViewDeletedEventArgs.cs
- DataListItemEventArgs.cs
- TextModifier.cs
- WinEventWrap.cs
- RelationalExpressions.cs
- SoapElementAttribute.cs
- ListViewGroup.cs
- DocumentGrid.cs
- EntitySetDataBindingList.cs
- XamlLoadErrorInfo.cs
- EntityStoreSchemaFilterEntry.cs
- EntityViewGenerationAttribute.cs
- CacheOutputQuery.cs
- ScrollEventArgs.cs
- ListCollectionView.cs
- UserPersonalizationStateInfo.cs
- TextServicesCompartmentContext.cs
- SamlAssertion.cs
- ViewStateModeByIdAttribute.cs
- RegionData.cs
- ObjectDataSourceStatusEventArgs.cs