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
- HttpStaticObjectsCollectionWrapper.cs
- RegexCompilationInfo.cs
- WebPartCatalogCloseVerb.cs
- Sql8ExpressionRewriter.cs
- Native.cs
- EntityContainer.cs
- TabControlCancelEvent.cs
- DispatcherFrame.cs
- MimeFormReflector.cs
- AutomationIdentifier.cs
- SoapInteropTypes.cs
- FileDialog_Vista_Interop.cs
- MulticastIPAddressInformationCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- SystemWebExtensionsSectionGroup.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DateTimeOffsetStorage.cs
- InputLanguageProfileNotifySink.cs
- ToolStripManager.cs
- CapabilitiesState.cs
- CompilerInfo.cs
- ContentPresenter.cs
- PermissionAttributes.cs
- CacheVirtualItemsEvent.cs
- IsolatedStorageFileStream.cs
- WriteTimeStream.cs
- ClientUrlResolverWrapper.cs
- OutputCacheProfileCollection.cs
- FontInfo.cs
- ReadOnlyDataSourceView.cs
- ProfileSettings.cs
- SpAudioStreamWrapper.cs
- Command.cs
- PkcsUtils.cs
- SvcMapFileSerializer.cs
- RenameRuleObjectDialog.Designer.cs
- MembershipPasswordException.cs
- DropDownList.cs
- WindowInteropHelper.cs
- OpenTypeCommon.cs
- FormViewPagerRow.cs
- Operator.cs
- ReadOnlyNameValueCollection.cs
- ButtonColumn.cs
- ControlBuilderAttribute.cs
- TemplateEditingService.cs
- TextDecorationCollectionConverter.cs
- Rect3DConverter.cs
- __Filters.cs
- PageSettings.cs
- ConditionalAttribute.cs
- TitleStyle.cs
- DrawingGroup.cs
- GenericPrincipal.cs
- SRDisplayNameAttribute.cs
- DynamicDocumentPaginator.cs
- QuerySetOp.cs
- SqlProfileProvider.cs
- RuntimeConfigurationRecord.cs
- BufferedGraphics.cs
- UpdateEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- ArgumentOutOfRangeException.cs
- ImageSourceValueSerializer.cs
- CodeDirectionExpression.cs
- CacheChildrenQuery.cs
- PassportAuthenticationModule.cs
- TileBrush.cs
- BasicDesignerLoader.cs
- Quaternion.cs
- TextSpan.cs
- OracleCommand.cs
- OleDbCommandBuilder.cs
- Queue.cs
- LockRecursionException.cs
- EditingCoordinator.cs
- MarkupExtensionParser.cs
- DefaultWorkflowTransactionService.cs
- TextCompositionEventArgs.cs
- Logging.cs
- TreeWalkHelper.cs
- TemplatedWizardStep.cs
- ExtenderHelpers.cs
- OdbcConnection.cs
- Pipe.cs
- SplitContainerDesigner.cs
- ParserOptions.cs
- FlowLayoutPanel.cs
- EntityProxyTypeInfo.cs
- InkCanvas.cs
- SendActivityValidator.cs
- Viewport3DAutomationPeer.cs
- DesignTimeDataBinding.cs
- ScrollEvent.cs
- SettingsContext.cs
- SystemIdentity.cs
- TimelineClockCollection.cs
- ScriptResourceHandler.cs
- SmiRecordBuffer.cs
- ImageCodecInfo.cs