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
- EdmMember.cs
- BuildProvider.cs
- ClientScriptManager.cs
- GridPattern.cs
- SoapObjectInfo.cs
- FreeFormDragDropManager.cs
- Module.cs
- ReaderOutput.cs
- GPRECT.cs
- ReflectionUtil.cs
- TemplateControlParser.cs
- ListBoxItemWrapperAutomationPeer.cs
- ThicknessAnimation.cs
- KernelTypeValidation.cs
- AliasedSlot.cs
- ProgressBarHighlightConverter.cs
- Bold.cs
- ForwardPositionQuery.cs
- SqlDataSourceCommandEventArgs.cs
- SplayTreeNode.cs
- ListViewDeletedEventArgs.cs
- UserControl.cs
- TypeContext.cs
- ServerIdentity.cs
- ToolTipService.cs
- WindowsContainer.cs
- DesignTimeParseData.cs
- ExtensionSurface.cs
- StringCollection.cs
- SafeEventLogWriteHandle.cs
- SafeReversePInvokeHandle.cs
- RegexMatchCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TreeIterators.cs
- WebPartsPersonalization.cs
- RenderData.cs
- MonitorWrapper.cs
- UiaCoreApi.cs
- HtmlElementEventArgs.cs
- SequenceDesigner.cs
- StateDesignerConnector.cs
- SqlConnectionPoolProviderInfo.cs
- SQLGuid.cs
- CollectionTypeElement.cs
- WasAdminWrapper.cs
- BitmapEffectCollection.cs
- GroupPartitionExpr.cs
- ReadOnlyDataSource.cs
- GradientStopCollection.cs
- SchemaEntity.cs
- UTF8Encoding.cs
- EdmEntityTypeAttribute.cs
- AssemblyFilter.cs
- ZipFileInfo.cs
- HierarchicalDataSourceControl.cs
- PeerResolverElement.cs
- MenuCommands.cs
- TraceUtility.cs
- EntityCodeGenerator.cs
- WindowCollection.cs
- SuppressMergeCheckAttribute.cs
- FontStyles.cs
- ObjectToModelValueConverter.cs
- ResourceContainer.cs
- RecommendedAsConfigurableAttribute.cs
- GridView.cs
- InvalidDataException.cs
- UserControl.cs
- HostProtectionException.cs
- GenericFlowSwitchHelper.cs
- WhitespaceSignificantCollectionAttribute.cs
- AutomationProperties.cs
- Binding.cs
- DesignBindingPicker.cs
- RegexTree.cs
- FlowDocumentView.cs
- ByteKeyFrameCollection.cs
- TextEditorLists.cs
- SelectionItemProviderWrapper.cs
- GroupJoinQueryOperator.cs
- AutomationElementIdentifiers.cs
- FocusManager.cs
- RequestBringIntoViewEventArgs.cs
- Grant.cs
- CryptoProvider.cs
- DirtyTextRange.cs
- XmlAutoDetectWriter.cs
- PropertiesTab.cs
- ZeroOpNode.cs
- COM2IDispatchConverter.cs
- ResourcePool.cs
- PersistenceTypeAttribute.cs
- selecteditemcollection.cs
- recordstatescratchpad.cs
- XPathNavigatorReader.cs
- CodeRemoveEventStatement.cs
- SpellerInterop.cs
- SqlBinder.cs
- SecurityContext.cs
- GradientBrush.cs