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
- BamlStream.cs
- BamlTreeNode.cs
- SelectedDatesCollection.cs
- CodeMemberProperty.cs
- InputGestureCollection.cs
- Win32Native.cs
- ContourSegment.cs
- UIElement.cs
- WizardForm.cs
- DetailsViewUpdatedEventArgs.cs
- Maps.cs
- ModelTreeEnumerator.cs
- StateManagedCollection.cs
- Geometry3D.cs
- SendContent.cs
- ColumnMapTranslator.cs
- TextSpan.cs
- Property.cs
- MemberAccessException.cs
- BuildProvidersCompiler.cs
- DataGridViewCheckBoxCell.cs
- HostedTransportConfigurationManager.cs
- VectorCollectionValueSerializer.cs
- TraceUtility.cs
- EditableRegion.cs
- HeaderCollection.cs
- ContainsSearchOperator.cs
- DependencyObjectPropertyDescriptor.cs
- HtmlForm.cs
- CallContext.cs
- WindowsIPAddress.cs
- SignedInfo.cs
- AttachmentCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- ConnectionInterfaceCollection.cs
- IntSecurity.cs
- Encoder.cs
- MenuItemStyle.cs
- SQLBoolean.cs
- AVElementHelper.cs
- FlowPosition.cs
- EmptyControlCollection.cs
- DataKey.cs
- RightsManagementPermission.cs
- XmlNamespaceMapping.cs
- DataPagerCommandEventArgs.cs
- RightsManagementPermission.cs
- CompositionTarget.cs
- RevocationPoint.cs
- TryCatchDesigner.xaml.cs
- PropertyGrid.cs
- XmlObjectSerializerReadContextComplex.cs
- SystemColors.cs
- SafeNativeMethods.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DataKey.cs
- BindingGroup.cs
- AggregateNode.cs
- HandlerFactoryCache.cs
- SqlRewriteScalarSubqueries.cs
- TextTabProperties.cs
- SingleResultAttribute.cs
- HttpCookieCollection.cs
- CheckoutException.cs
- ToolStripPanelRow.cs
- BaseResourcesBuildProvider.cs
- BlobPersonalizationState.cs
- TextTreeExtractElementUndoUnit.cs
- CustomGrammar.cs
- Stylus.cs
- EmbeddedMailObjectCollectionEditor.cs
- SafeBitVector32.cs
- SymLanguageType.cs
- ByteAnimationBase.cs
- Brushes.cs
- Compilation.cs
- ExpressionBindings.cs
- Emitter.cs
- FixedSOMTextRun.cs
- AutomationIdentifier.cs
- AsynchronousChannel.cs
- AttachmentCollection.cs
- ServiceDescriptionSerializer.cs
- FontDriver.cs
- UdpDiscoveryEndpointElement.cs
- ColumnResizeAdorner.cs
- DataGridViewLinkColumn.cs
- DateTimeHelper.cs
- StaticFileHandler.cs
- WindowsTreeView.cs
- SelectionHighlightInfo.cs
- SqlNotificationEventArgs.cs
- SiteMembershipCondition.cs
- LocatorManager.cs
- SmuggledIUnknown.cs
- ToolStripDropDownItemDesigner.cs
- ToolStripProgressBar.cs
- CollectionConverter.cs
- VirtualPath.cs
- UnmanagedMarshal.cs