Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WinFormsComponentEditor.cs
- DataGridViewTopLeftHeaderCell.cs
- Selector.cs
- ToolStripEditorManager.cs
- TextBreakpoint.cs
- ExceptionRoutedEventArgs.cs
- ArithmeticLiteral.cs
- WebServiceResponseDesigner.cs
- EventLogPermissionEntry.cs
- OpenFileDialog.cs
- NonValidatingSecurityTokenAuthenticator.cs
- ColorDialog.cs
- TransactionManager.cs
- _FixedSizeReader.cs
- webeventbuffer.cs
- RolePrincipal.cs
- ServiceOperationInvoker.cs
- WindowCollection.cs
- SuppressMergeCheckAttribute.cs
- XmlSchemaElement.cs
- BinaryObjectInfo.cs
- WbmpConverter.cs
- BinHexDecoder.cs
- InternalBase.cs
- MergePropertyDescriptor.cs
- SqlNotificationRequest.cs
- GridPattern.cs
- WindowsStartMenu.cs
- Block.cs
- RenderTargetBitmap.cs
- SessionState.cs
- SlipBehavior.cs
- DiscreteKeyFrames.cs
- TransformedBitmap.cs
- KeyManager.cs
- StopRoutingHandler.cs
- ObjectResult.cs
- WindowsToolbar.cs
- SymbolMethod.cs
- RequestResponse.cs
- JpegBitmapEncoder.cs
- SmtpNegotiateAuthenticationModule.cs
- IgnoreFileBuildProvider.cs
- Rfc4050KeyFormatter.cs
- ToolStripGrip.cs
- WebDisplayNameAttribute.cs
- Random.cs
- TypeBuilderInstantiation.cs
- EntityContainerRelationshipSetEnd.cs
- NativeMethods.cs
- RelationshipEndMember.cs
- Odbc32.cs
- Stream.cs
- AnnotationStore.cs
- Int32CollectionConverter.cs
- TraceContextRecord.cs
- SqlRewriteScalarSubqueries.cs
- XmlSchemaAppInfo.cs
- BitmapEffect.cs
- DecoratedNameAttribute.cs
- HttpRuntime.cs
- CodeCastExpression.cs
- FormClosedEvent.cs
- CompressedStack.cs
- ClientTargetSection.cs
- DataGridViewLayoutData.cs
- BehaviorEditorPart.cs
- DelayedRegex.cs
- XpsImageSerializationService.cs
- ToggleProviderWrapper.cs
- XmlSequenceWriter.cs
- FileUpload.cs
- Math.cs
- ObjectReaderCompiler.cs
- recordstatefactory.cs
- Int64Animation.cs
- SizeValueSerializer.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ObjectCloneHelper.cs
- AsyncContentLoadedEventArgs.cs
- Vector3DCollection.cs
- MultipartIdentifier.cs
- Border.cs
- DataListItem.cs
- ScriptControlManager.cs
- CreateUserWizardStep.cs
- ActiveXContainer.cs
- NestPullup.cs
- RelationshipDetailsCollection.cs
- InfiniteIntConverter.cs
- WebEventCodes.cs
- GroupLabel.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- Rect3D.cs
- UpDownBase.cs
- Margins.cs
- LocalizationParserHooks.cs
- CryptoConfig.cs
- DeobfuscatingStream.cs
- StoreContentChangedEventArgs.cs