Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 2 / 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PhotoPrintingIntent.cs
- EdmTypeAttribute.cs
- FixedStringLookup.cs
- PropertyInfoSet.cs
- MailDefinitionBodyFileNameEditor.cs
- AuthenticationModuleElement.cs
- DependencyPropertyValueSerializer.cs
- DataPagerFieldCommandEventArgs.cs
- SystemUdpStatistics.cs
- ContentElementAutomationPeer.cs
- ButtonStandardAdapter.cs
- XmlSchemaFacet.cs
- PropertyGroupDescription.cs
- TypefaceCollection.cs
- FontWeightConverter.cs
- listitem.cs
- Activity.cs
- Context.cs
- HwndTarget.cs
- SessionStateSection.cs
- SafeRegistryHandle.cs
- RealizationDrawingContextWalker.cs
- XsltSettings.cs
- UICuesEvent.cs
- IItemContainerGenerator.cs
- MessageDecoder.cs
- NavigateEvent.cs
- WaitHandle.cs
- PenLineJoinValidation.cs
- DateTimeConstantAttribute.cs
- XomlCompilerParameters.cs
- FaultDescriptionCollection.cs
- InvalidDocumentContentsException.cs
- HMACSHA256.cs
- CompositionCommandSet.cs
- OneToOneMappingSerializer.cs
- SmtpCommands.cs
- IisTraceWebEventProvider.cs
- Select.cs
- PathSegment.cs
- SplitterPanelDesigner.cs
- SqlConnectionString.cs
- _ContextAwareResult.cs
- DataSourceConverter.cs
- Vertex.cs
- OleDbError.cs
- InputScopeNameConverter.cs
- Profiler.cs
- EffectiveValueEntry.cs
- SecurityTokenInclusionMode.cs
- CollectionsUtil.cs
- NotifyIcon.cs
- StyleXamlTreeBuilder.cs
- AxHost.cs
- BitmapData.cs
- OracleLob.cs
- Margins.cs
- DataGridViewHeaderCell.cs
- DesignerValidationSummaryAdapter.cs
- WriteableBitmap.cs
- ProgressBarRenderer.cs
- HashHelper.cs
- ApplicationServiceHelper.cs
- BypassElement.cs
- _RequestCacheProtocol.cs
- QueryResponse.cs
- ConfigUtil.cs
- XsltSettings.cs
- RoutedEventConverter.cs
- SqlMethodCallConverter.cs
- WebScriptServiceHost.cs
- SQLResource.cs
- ItemTypeToolStripMenuItem.cs
- Application.cs
- HttpProxyCredentialType.cs
- Point.cs
- CircleHotSpot.cs
- SupportingTokenAuthenticatorSpecification.cs
- PersistenceMetadataNamespace.cs
- SqlStream.cs
- XMLSchema.cs
- ImageSource.cs
- MouseEvent.cs
- PackageStore.cs
- SinglePageViewer.cs
- BindToObject.cs
- AutoResizedEvent.cs
- TableNameAttribute.cs
- DecimalFormatter.cs
- IResourceProvider.cs
- DataRecordInternal.cs
- BamlResourceSerializer.cs
- RowToFieldTransformer.cs
- ConfigurationSettings.cs
- SafeCloseHandleCritical.cs
- NTAccount.cs
- SurrogateEncoder.cs
- _HeaderInfoTable.cs
- Point3DCollectionValueSerializer.cs
- XmlCountingReader.cs