Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- XmlSchemaSimpleContentExtension.cs
- MessageSecurityOverMsmq.cs
- CopyCodeAction.cs
- FixedSOMTableRow.cs
- TextTreeTextNode.cs
- HeaderCollection.cs
- CustomError.cs
- VScrollBar.cs
- CollectionView.cs
- QueryableDataSourceEditData.cs
- GetWinFXPath.cs
- QilTernary.cs
- SortExpressionBuilder.cs
- HttpDictionary.cs
- StructuredTypeEmitter.cs
- CompilationUtil.cs
- MessageSecurityProtocolFactory.cs
- WebPartUtil.cs
- _SpnDictionary.cs
- XmlILStorageConverter.cs
- WebRequestModuleElement.cs
- FileChangesMonitor.cs
- IdentityNotMappedException.cs
- HtmlInputControl.cs
- HotSpot.cs
- DrawToolTipEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- DateTime.cs
- CodeBinaryOperatorExpression.cs
- Maps.cs
- Evidence.cs
- ReflectionTypeLoadException.cs
- PopupRootAutomationPeer.cs
- ToggleButton.cs
- CodeTypeReferenceExpression.cs
- DescendantQuery.cs
- DataList.cs
- TextParentUndoUnit.cs
- MessageBox.cs
- DbConnectionHelper.cs
- XmlSchemaComplexContent.cs
- Command.cs
- XmlSchemaComplexType.cs
- FontWeight.cs
- LambdaCompiler.ControlFlow.cs
- NetworkAddressChange.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- TextViewSelectionProcessor.cs
- CultureInfoConverter.cs
- DataObjectPastingEventArgs.cs
- RelationshipConstraintValidator.cs
- WebPartConnectVerb.cs
- XmlIgnoreAttribute.cs
- GridItem.cs
- CssStyleCollection.cs
- WebPartEditorOkVerb.cs
- EventLogLink.cs
- Membership.cs
- SoapConverter.cs
- Encoder.cs
- EpmCustomContentWriterNodeData.cs
- EntityException.cs
- AliasedSlot.cs
- RelationshipNavigation.cs
- WindowsListViewScroll.cs
- EarlyBoundInfo.cs
- ButtonFlatAdapter.cs
- RequestCachePolicyConverter.cs
- RangeValuePattern.cs
- MouseGestureValueSerializer.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- GradientStop.cs
- DockProviderWrapper.cs
- XmlValueConverter.cs
- PageFunction.cs
- TableLayoutStyleCollection.cs
- XmlDesignerDataSourceView.cs
- HttpListener.cs
- ContextStack.cs
- CapacityStreamGeometryContext.cs
- IdnElement.cs
- ByteStream.cs
- DataTableCollection.cs
- ByteAnimation.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TreeViewItem.cs
- UnknownWrapper.cs
- Boolean.cs
- TimeSpanOrInfiniteConverter.cs
- Speller.cs
- DragEvent.cs
- recordstate.cs
- SpellCheck.cs
- ContractAdapter.cs
- CloudCollection.cs
- ComplexTypeEmitter.cs
- OneOfConst.cs
- LockedAssemblyCache.cs
- DataControlButton.cs
- ClientSponsor.cs