Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OrCondition.cs
- GridViewAutomationPeer.cs
- TreePrinter.cs
- RawStylusInputCustomData.cs
- ParentQuery.cs
- FileChangesMonitor.cs
- DataGridViewSelectedColumnCollection.cs
- ToolStripMenuItemDesigner.cs
- GroupStyle.cs
- Point4D.cs
- GradientStop.cs
- MessageSecurityOverMsmqElement.cs
- ArrayList.cs
- DuplicateDetector.cs
- remotingproxy.cs
- SizeChangedInfo.cs
- TypeNameParser.cs
- ButtonStandardAdapter.cs
- SendSecurityHeader.cs
- EndEvent.cs
- BinaryMethodMessage.cs
- TableParaClient.cs
- Header.cs
- Wildcard.cs
- Query.cs
- StreamGeometryContext.cs
- UITypeEditor.cs
- MappingMetadataHelper.cs
- EvidenceTypeDescriptor.cs
- XmlNavigatorStack.cs
- ObjectStateManager.cs
- WebScriptEnablingBehavior.cs
- DataViewManagerListItemTypeDescriptor.cs
- MethodBuilderInstantiation.cs
- State.cs
- _NetworkingPerfCounters.cs
- StylusButtonCollection.cs
- SQLSingleStorage.cs
- SoapTypeAttribute.cs
- NotFiniteNumberException.cs
- MsmqChannelFactoryBase.cs
- TrackPoint.cs
- EntityTypeEmitter.cs
- StreamInfo.cs
- FormattedText.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- Documentation.cs
- UpdateCompiler.cs
- ColorInterpolationModeValidation.cs
- Rules.cs
- ContentControl.cs
- ControlBuilder.cs
- NavigationHelper.cs
- JsonDeserializer.cs
- ReadOnlyMetadataCollection.cs
- StateItem.cs
- EllipticalNodeOperations.cs
- DataGridViewCheckBoxCell.cs
- BindingOperations.cs
- exports.cs
- RsaSecurityTokenAuthenticator.cs
- CqlLexer.cs
- TabControl.cs
- LocalTransaction.cs
- HttpCacheVaryByContentEncodings.cs
- input.cs
- SimpleRecyclingCache.cs
- RoleGroupCollection.cs
- PassportPrincipal.cs
- TransformProviderWrapper.cs
- FixedSOMImage.cs
- TextViewElement.cs
- Utils.cs
- TrackBarDesigner.cs
- DrawToolTipEventArgs.cs
- Token.cs
- RowUpdatedEventArgs.cs
- EventMappingSettings.cs
- InkCanvasSelectionAdorner.cs
- securitycriticaldata.cs
- PeerEndPoint.cs
- XPathSingletonIterator.cs
- TraceProvider.cs
- WebMessageBodyStyleHelper.cs
- PrimarySelectionAdorner.cs
- StrongTypingException.cs
- PersonalizationDictionary.cs
- StringConcat.cs
- XmlNullResolver.cs
- UdpAnnouncementEndpoint.cs
- IpcChannelHelper.cs
- ProfileSection.cs
- InheritanceRules.cs
- BitmapPalettes.cs
- BasicHttpBindingCollectionElement.cs
- TextEditorLists.cs
- ThemeDirectoryCompiler.cs
- DependencyObjectValidator.cs
- Overlapped.cs
- ProxyHwnd.cs