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
- PathFigureCollection.cs
- LoginUtil.cs
- PropertyDescriptorGridEntry.cs
- CallInfo.cs
- TraceProvider.cs
- MarkupExtensionParser.cs
- EventHandlingScope.cs
- ResourcesBuildProvider.cs
- RsaSecurityKey.cs
- FeatureSupport.cs
- TextElement.cs
- SerialStream.cs
- DesignerProperties.cs
- AvTraceFormat.cs
- RequestQueue.cs
- XmlCDATASection.cs
- EmptyStringExpandableObjectConverter.cs
- QueryAsyncResult.cs
- CodeObjectCreateExpression.cs
- BitmapVisualManager.cs
- CompilationPass2Task.cs
- KnownBoxes.cs
- DataGridAddNewRow.cs
- DetailsViewUpdatedEventArgs.cs
- ThreadPool.cs
- sortedlist.cs
- LambdaCompiler.Statements.cs
- ConditionalAttribute.cs
- CodePageEncoding.cs
- ObjectComplexPropertyMapping.cs
- WindowsPrincipal.cs
- DefaultWorkflowTransactionService.cs
- StackSpiller.Generated.cs
- Base64Decoder.cs
- File.cs
- SimpleWebHandlerParser.cs
- AudioFileOut.cs
- Pens.cs
- SQLResource.cs
- DeferredElementTreeState.cs
- dsa.cs
- DataSourceHelper.cs
- XmlNullResolver.cs
- KeyValueInternalCollection.cs
- SafeNativeMethods.cs
- fixedPageContentExtractor.cs
- NestPullup.cs
- DecoderReplacementFallback.cs
- ListSortDescriptionCollection.cs
- Manipulation.cs
- ProcessProtocolHandler.cs
- LockRecursionException.cs
- GridItem.cs
- DataGridViewCellFormattingEventArgs.cs
- UrlPath.cs
- SqlBulkCopyColumnMapping.cs
- BinaryObjectWriter.cs
- Mappings.cs
- BamlBinaryReader.cs
- MasterPageCodeDomTreeGenerator.cs
- SafeNativeMethods.cs
- TileBrush.cs
- DispatcherExceptionEventArgs.cs
- ElementHost.cs
- X509SecurityTokenParameters.cs
- RegisteredExpandoAttribute.cs
- GestureRecognitionResult.cs
- XmlCountingReader.cs
- DesignerCategoryAttribute.cs
- XmlDataSource.cs
- base64Transforms.cs
- ExpressionBinding.cs
- XamlStyleSerializer.cs
- ToolStripOverflow.cs
- CollectionBase.cs
- ShortcutKeysEditor.cs
- OperationContext.cs
- DataPagerCommandEventArgs.cs
- WebPartVerb.cs
- MimeTypePropertyAttribute.cs
- FixedTextView.cs
- ComplexObject.cs
- TheQuery.cs
- KeyValueSerializer.cs
- PointCollection.cs
- StringBuilder.cs
- ReturnEventArgs.cs
- Int64Storage.cs
- PropertyMapper.cs
- StateDesigner.cs
- EventDescriptor.cs
- SQLConvert.cs
- DescriptionAttribute.cs
- SchemaTypeEmitter.cs
- FileUpload.cs
- HtmlInputImage.cs
- GridViewRowCollection.cs
- GraphicsPathIterator.cs
- LogicalExpressionEditor.cs
- sqlpipe.cs