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
- XPathSelectionIterator.cs
- SuppressMergeCheckAttribute.cs
- ByteRangeDownloader.cs
- EpmSyndicationContentSerializer.cs
- ChannelDemuxer.cs
- XmlMemberMapping.cs
- _SafeNetHandles.cs
- TypeConverterAttribute.cs
- MemoryResponseElement.cs
- CodeTypeDeclarationCollection.cs
- URL.cs
- Single.cs
- UInt64.cs
- PathNode.cs
- Stream.cs
- Clause.cs
- LingerOption.cs
- PropertyValueChangedEvent.cs
- JavaScriptString.cs
- SqlDataSourceStatusEventArgs.cs
- AssemblyFilter.cs
- FixedSOMGroup.cs
- Line.cs
- TrailingSpaceComparer.cs
- WindowsIdentity.cs
- _NativeSSPI.cs
- ListViewItem.cs
- SqlNodeTypeOperators.cs
- IndexerNameAttribute.cs
- SystemDiagnosticsSection.cs
- ToolBarButton.cs
- sqlser.cs
- dtdvalidator.cs
- StylusTip.cs
- Pair.cs
- MatrixTransform3D.cs
- DocumentSchemaValidator.cs
- ConfigurationLockCollection.cs
- Debugger.cs
- ProcessManager.cs
- Site.cs
- SettingsBindableAttribute.cs
- StringHelper.cs
- WindowsUpDown.cs
- ConcurrentStack.cs
- MD5.cs
- SizeLimitedCache.cs
- LayoutEditorPart.cs
- FollowerQueueCreator.cs
- EncryptedType.cs
- LateBoundBitmapDecoder.cs
- Config.cs
- ComplexBindingPropertiesAttribute.cs
- EnterpriseServicesHelper.cs
- AppSettingsReader.cs
- ImageAttributes.cs
- DynamicActivityTypeDescriptor.cs
- StringSorter.cs
- DataRowView.cs
- webproxy.cs
- TempEnvironment.cs
- HttpConfigurationSystem.cs
- AuthStoreRoleProvider.cs
- PassportAuthentication.cs
- PatternMatcher.cs
- PrintDialog.cs
- PeerNearMe.cs
- ServiceDesigner.cs
- WindowsSidIdentity.cs
- MemberAccessException.cs
- TableItemProviderWrapper.cs
- PageAsyncTask.cs
- DeviceContexts.cs
- TextTreePropertyUndoUnit.cs
- DecoratedNameAttribute.cs
- CodeArgumentReferenceExpression.cs
- GPRECTF.cs
- DataServiceBuildProvider.cs
- XmlSchemaImport.cs
- SAPIEngineTypes.cs
- RemoteWebConfigurationHostStream.cs
- BlockCollection.cs
- ParamArrayAttribute.cs
- Hash.cs
- CAGDesigner.cs
- WorkflowApplicationUnloadedException.cs
- ProcessingInstructionAction.cs
- DetailsViewUpdateEventArgs.cs
- HMACSHA512.cs
- SByteStorage.cs
- Propagator.JoinPropagator.cs
- DataMemberFieldConverter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataGridViewImageCell.cs
- SystemKeyConverter.cs
- TextWriter.cs
- BitmapPalette.cs
- EnumMember.cs
- BinaryNode.cs
- NumberFormatInfo.cs