Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegisteredDisposeScript.cs
- PartitionResolver.cs
- WindowCollection.cs
- RequestCacheEntry.cs
- UdpDiscoveryEndpointElement.cs
- CompiledAction.cs
- CustomPopupPlacement.cs
- PerformanceCounterManager.cs
- XmlParserContext.cs
- FileLevelControlBuilderAttribute.cs
- DataSourceSerializationException.cs
- WindowsFormsSynchronizationContext.cs
- ServicePoint.cs
- Size3D.cs
- Mouse.cs
- ComplexTypeEmitter.cs
- ServiceProviders.cs
- CodeAttributeArgumentCollection.cs
- ISFTagAndGuidCache.cs
- Exceptions.cs
- Rotation3DAnimationBase.cs
- KeyPressEvent.cs
- TreeNodeClickEventArgs.cs
- StringFunctions.cs
- CodeNamespaceImport.cs
- ProcessHost.cs
- ObjectDataSourceView.cs
- DocumentGridPage.cs
- SqlLiftWhereClauses.cs
- AmbientValueAttribute.cs
- DeclaredTypeValidator.cs
- ChannelSinkStacks.cs
- PassportPrincipal.cs
- RegistryKey.cs
- LinearQuaternionKeyFrame.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ScrollProperties.cs
- JavaScriptString.cs
- HeaderCollection.cs
- SessionIDManager.cs
- SimpleTypeResolver.cs
- SqlIdentifier.cs
- MessageHeaderT.cs
- ValueSerializer.cs
- CodeDomComponentSerializationService.cs
- PolyBezierSegmentFigureLogic.cs
- MeshGeometry3D.cs
- TemplatedWizardStep.cs
- EntityDataSourceWizardForm.cs
- ClientSettingsStore.cs
- DnsPermission.cs
- HtmlEmptyTagControlBuilder.cs
- safelink.cs
- ColorIndependentAnimationStorage.cs
- XmlCDATASection.cs
- SetterBase.cs
- RelationshipEnd.cs
- ListBoxAutomationPeer.cs
- DataListItemCollection.cs
- QuaternionAnimationBase.cs
- TemplatedAdorner.cs
- DataGridViewComboBoxEditingControl.cs
- ToolStripOverflowButton.cs
- SelectionEditor.cs
- AvTraceDetails.cs
- DecimalKeyFrameCollection.cs
- SizeFConverter.cs
- PersistenceException.cs
- HtmlShim.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ReferencedCollectionType.cs
- BrowserCapabilitiesFactory.cs
- DashStyles.cs
- AutoSizeToolBoxItem.cs
- IsolatedStoragePermission.cs
- FontDifferentiator.cs
- ProjectionPlanCompiler.cs
- Pointer.cs
- ServiceActivationException.cs
- MarkupProperty.cs
- EventLogQuery.cs
- TimeSpanConverter.cs
- StylusEditingBehavior.cs
- SelectionRangeConverter.cs
- FtpCachePolicyElement.cs
- RoleServiceManager.cs
- _Semaphore.cs
- Ipv6Element.cs
- GZipStream.cs
- VisualStyleRenderer.cs
- StateManagedCollection.cs
- SqlNamer.cs
- CommandHelpers.cs
- MD5.cs
- UInt16Converter.cs
- DetailsViewCommandEventArgs.cs
- Module.cs
- counter.cs
- EncryptedXml.cs
- HandleRef.cs