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
- CacheRequest.cs
- OracleBFile.cs
- NativeMethods.cs
- WebResourceAttribute.cs
- ColorComboBox.cs
- ParentUndoUnit.cs
- TemplateControl.cs
- PreservationFileWriter.cs
- Ray3DHitTestResult.cs
- ProvidersHelper.cs
- SQLDateTimeStorage.cs
- TextEndOfSegment.cs
- StyleBamlTreeBuilder.cs
- Polygon.cs
- CharacterMetrics.cs
- ContextQuery.cs
- DocumentViewerConstants.cs
- RoleManagerSection.cs
- TypeUnloadedException.cs
- SnapLine.cs
- SelectedDatesCollection.cs
- GradientBrush.cs
- _AutoWebProxyScriptWrapper.cs
- LineServicesCallbacks.cs
- ObjectAnimationBase.cs
- CmsInterop.cs
- MaterializeFromAtom.cs
- PageVisual.cs
- XmlSchemaSimpleTypeRestriction.cs
- TableStyle.cs
- PersonalizationState.cs
- DataGrid.cs
- DataBoundLiteralControl.cs
- TextBoxDesigner.cs
- CustomCredentialPolicy.cs
- XmlAnyElementAttributes.cs
- SecurityManager.cs
- StateValidator.cs
- ResourceFallbackManager.cs
- DataFormats.cs
- XmlCharCheckingWriter.cs
- SignedXml.cs
- BamlRecordHelper.cs
- CharAnimationUsingKeyFrames.cs
- ResXDataNode.cs
- RectConverter.cs
- AssemblySettingAttributes.cs
- HelpProvider.cs
- CustomLineCap.cs
- PngBitmapEncoder.cs
- DbParameterHelper.cs
- RowToParametersTransformer.cs
- FrameworkElementFactory.cs
- HttpHandlerActionCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- BufferModesCollection.cs
- PropertiesTab.cs
- GeometryModel3D.cs
- ControlBindingsCollection.cs
- base64Transforms.cs
- StringFreezingAttribute.cs
- RadioButtonStandardAdapter.cs
- ListBoxItemWrapperAutomationPeer.cs
- ActivationArguments.cs
- WebPartAuthorizationEventArgs.cs
- Logging.cs
- SqlTypesSchemaImporter.cs
- ConfigurationCollectionAttribute.cs
- WSHttpBindingBase.cs
- XPathChildIterator.cs
- ListBox.cs
- DescendantBaseQuery.cs
- SapiRecognizer.cs
- FileUtil.cs
- ProtocolsConfigurationHandler.cs
- SynchronizedRandom.cs
- HttpPostedFile.cs
- ClientSponsor.cs
- DataRecordInternal.cs
- LogWriteRestartAreaState.cs
- GACIdentityPermission.cs
- LoadWorkflowCommand.cs
- DebugHandleTracker.cs
- ObjectDataSourceStatusEventArgs.cs
- ChangeInterceptorAttribute.cs
- MembershipUser.cs
- DynamicPropertyHolder.cs
- ErrorStyle.cs
- Expressions.cs
- ScriptReference.cs
- DefaultSection.cs
- WebControlParameterProxy.cs
- CapabilitiesState.cs
- DynamicILGenerator.cs
- FileDataSourceCache.cs
- MenuItem.cs
- Pens.cs
- CompilerCollection.cs
- Point3D.cs
- SQlBooleanStorage.cs