Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- UrlAuthorizationModule.cs
- BoundField.cs
- HttpRequestBase.cs
- DependencyObjectValidator.cs
- XmlComment.cs
- ColumnHeaderConverter.cs
- HybridDictionary.cs
- AttributeEmitter.cs
- LinqMaximalSubtreeNominator.cs
- UnsafeNativeMethods.cs
- AutomationEventArgs.cs
- ContentElement.cs
- RegexTree.cs
- CachedPathData.cs
- SchemaTypeEmitter.cs
- HttpsChannelListener.cs
- Compiler.cs
- TextureBrush.cs
- WebServiceBindingAttribute.cs
- EncoderFallback.cs
- PreProcessor.cs
- MenuItemStyleCollection.cs
- StylusCaptureWithinProperty.cs
- TripleDESCryptoServiceProvider.cs
- PointConverter.cs
- UnsafeMethods.cs
- ComponentCollection.cs
- PasswordTextContainer.cs
- CustomErrorCollection.cs
- TransactedBatchingBehavior.cs
- ZipIOModeEnforcingStream.cs
- ExclusiveCanonicalizationTransform.cs
- DataGridViewImageColumn.cs
- GACIdentityPermission.cs
- OutputCacheProfileCollection.cs
- BufferedGraphicsContext.cs
- MarkupCompilePass1.cs
- HtmlTable.cs
- PermissionRequestEvidence.cs
- DataGridColumnFloatingHeader.cs
- SafeNativeMethods.cs
- Camera.cs
- SimpleTextLine.cs
- RuleSettingsCollection.cs
- MetadataProperty.cs
- CopyOnWriteList.cs
- SystemGatewayIPAddressInformation.cs
- FormatPage.cs
- SctClaimDictionary.cs
- MsmqProcessProtocolHandler.cs
- StackBuilderSink.cs
- SequenceQuery.cs
- PreviewKeyDownEventArgs.cs
- ThemeConfigurationDialog.cs
- CustomGrammar.cs
- ErrorStyle.cs
- NativeCppClassAttribute.cs
- EventRouteFactory.cs
- EncryptedKey.cs
- DialogResultConverter.cs
- PeerTransportListenAddressConverter.cs
- PropertyToken.cs
- DocumentViewerHelper.cs
- StrongNameUtility.cs
- ConfigurationConverterBase.cs
- oledbmetadatacollectionnames.cs
- InstallerTypeAttribute.cs
- UnionExpr.cs
- TextSimpleMarkerProperties.cs
- CriticalFinalizerObject.cs
- processwaithandle.cs
- GenerateHelper.cs
- FormatException.cs
- ExpandCollapsePatternIdentifiers.cs
- InvokeMemberBinder.cs
- AVElementHelper.cs
- Crc32Helper.cs
- SHA256.cs
- ResXResourceSet.cs
- Viewport2DVisual3D.cs
- StyleXamlParser.cs
- DateTimeUtil.cs
- ClientSession.cs
- BuildProviderUtils.cs
- SmiContext.cs
- AlignmentXValidation.cs
- ToolStripPanelSelectionBehavior.cs
- StorageBasedPackageProperties.cs
- ApplicationSecurityInfo.cs
- MasterPage.cs
- hwndwrapper.cs
- SendMailErrorEventArgs.cs
- DataTableReaderListener.cs
- RedirectionProxy.cs
- InputProviderSite.cs
- StreamUpgradeBindingElement.cs
- TreeViewAutomationPeer.cs
- XmlNavigatorFilter.cs
- FormatConvertedBitmap.cs
- BinaryUtilClasses.cs