Code:
/ FX-1434 / FX-1434 / 1.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
- Point.cs
- DefaultWorkflowTransactionService.cs
- ListViewItem.cs
- DesignerDataParameter.cs
- DataColumnMapping.cs
- StyleModeStack.cs
- CodeFieldReferenceExpression.cs
- FileUpload.cs
- WebPartMovingEventArgs.cs
- Vector3D.cs
- XPathNavigatorException.cs
- DataObjectSettingDataEventArgs.cs
- bindurihelper.cs
- XmlTypeMapping.cs
- GroupLabel.cs
- HttpProfileGroupBase.cs
- Configuration.cs
- XmlSerializationGeneratedCode.cs
- Memoizer.cs
- ProfilePropertySettingsCollection.cs
- ZipIOExtraField.cs
- HijriCalendar.cs
- SiteMapDataSourceView.cs
- activationcontext.cs
- FamilyTypeface.cs
- ConnectionConsumerAttribute.cs
- DataContractAttribute.cs
- BadImageFormatException.cs
- ManipulationInertiaStartingEventArgs.cs
- MobileControlBuilder.cs
- SiteMapSection.cs
- GatewayIPAddressInformationCollection.cs
- XmlTextReaderImpl.cs
- XmlKeywords.cs
- ChangeConflicts.cs
- TemplateContainer.cs
- RefType.cs
- SqlCacheDependencySection.cs
- SuppressIldasmAttribute.cs
- RotateTransform.cs
- ConfigUtil.cs
- ParagraphVisual.cs
- OptimalTextSource.cs
- AuthorizationRuleCollection.cs
- SafeFindHandle.cs
- SineEase.cs
- Table.cs
- Rect3DValueSerializer.cs
- AllMembershipCondition.cs
- ServicePointManager.cs
- GeneralTransformGroup.cs
- ContentDefinition.cs
- ShutDownListener.cs
- PeerEndPoint.cs
- Queue.cs
- DebugControllerThread.cs
- LongValidatorAttribute.cs
- EntityDataSourceWizardForm.cs
- XmlSchemaSimpleTypeRestriction.cs
- MailBnfHelper.cs
- UpdateException.cs
- PeerMessageDispatcher.cs
- EpmSourcePathSegment.cs
- SqlCrossApplyToCrossJoin.cs
- Section.cs
- QuestionEventArgs.cs
- ValidationEventArgs.cs
- RuleEngine.cs
- DiagnosticsConfigurationHandler.cs
- Stack.cs
- BlurEffect.cs
- Subordinate.cs
- UIInitializationException.cs
- BrowserDefinitionCollection.cs
- ExpressionBindingCollection.cs
- JsonWriter.cs
- FamilyTypefaceCollection.cs
- LocalValueEnumerator.cs
- DocumentSequence.cs
- SyndicationElementExtension.cs
- ApplicationProxyInternal.cs
- FacetChecker.cs
- ScrollData.cs
- GridItemPatternIdentifiers.cs
- SAPICategories.cs
- WasEndpointConfigContainer.cs
- UIElementPropertyUndoUnit.cs
- XmlNamespaceMapping.cs
- Deserializer.cs
- ChildTable.cs
- TransactionManager.cs
- FontStretches.cs
- SynchronizationContextHelper.cs
- OleDbCommandBuilder.cs
- _HeaderInfo.cs
- SqlCacheDependencyDatabase.cs
- XPathException.cs
- CommandField.cs
- SessionStateSection.cs
- BamlRecordHelper.cs