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
- ChtmlPhoneCallAdapter.cs
- CommentAction.cs
- MenuItemCollection.cs
- Accessible.cs
- DesignerDataTableBase.cs
- BypassElementCollection.cs
- sortedlist.cs
- SqlEnums.cs
- Command.cs
- AtomicFile.cs
- CacheSection.cs
- X509Utils.cs
- XpsFilter.cs
- __FastResourceComparer.cs
- Guid.cs
- BrowserDefinition.cs
- Button.cs
- MemberRelationshipService.cs
- TreeViewHitTestInfo.cs
- WpfXamlLoader.cs
- COM2EnumConverter.cs
- FamilyCollection.cs
- HwndSourceKeyboardInputSite.cs
- KeyInstance.cs
- InfiniteIntConverter.cs
- FileUpload.cs
- IItemContainerGenerator.cs
- SynchronizationScope.cs
- WindowsComboBox.cs
- SpellCheck.cs
- IISMapPath.cs
- Model3DGroup.cs
- StringResourceManager.cs
- MetadataSource.cs
- HtmlTableRowCollection.cs
- HttpCapabilitiesBase.cs
- XmlDataDocument.cs
- AmbientEnvironment.cs
- DataGridViewCellFormattingEventArgs.cs
- VerificationAttribute.cs
- ToolboxDataAttribute.cs
- QueryCreatedEventArgs.cs
- SQLInt64Storage.cs
- DataTableMapping.cs
- UpdateExpressionVisitor.cs
- MenuAutomationPeer.cs
- CodeRemoveEventStatement.cs
- FontDifferentiator.cs
- LinkTarget.cs
- SrgsRule.cs
- ClientCultureInfo.cs
- shaper.cs
- SourceInterpreter.cs
- ApplySecurityAndSendAsyncResult.cs
- Odbc32.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SettingsSavedEventArgs.cs
- X509Certificate.cs
- XmlSchemaObject.cs
- MLangCodePageEncoding.cs
- Repeater.cs
- Command.cs
- ExtendedPropertyDescriptor.cs
- ServiceDebugBehavior.cs
- ShapeTypeface.cs
- PtsHost.cs
- TypeForwardedToAttribute.cs
- remotingproxy.cs
- GcHandle.cs
- ParserExtension.cs
- TdsParser.cs
- BadImageFormatException.cs
- XmlQualifiedName.cs
- InvalidComObjectException.cs
- WebMessageBodyStyleHelper.cs
- COM2EnumConverter.cs
- NullableFloatAverageAggregationOperator.cs
- LinqDataSourceHelper.cs
- DesignerOptionService.cs
- DbDataRecord.cs
- OptimizerPatterns.cs
- NamedPermissionSet.cs
- DescendentsWalkerBase.cs
- SqlConnectionPoolProviderInfo.cs
- ParamArrayAttribute.cs
- DirectoryNotFoundException.cs
- SymbolUsageManager.cs
- XmlDeclaration.cs
- CmsInterop.cs
- ObjectNotFoundException.cs
- MediaSystem.cs
- WorkflowIdleBehavior.cs
- SerializationStore.cs
- EncryptedKey.cs
- ExpressionReplacer.cs
- EntityClientCacheEntry.cs
- TableCell.cs
- StrongNamePublicKeyBlob.cs
- XmlArrayItemAttributes.cs
- IPHostEntry.cs