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
- DBNull.cs
- FileAccessException.cs
- ChildDocumentBlock.cs
- SessionStateUtil.cs
- XmlSchemaSimpleType.cs
- ActivityValidator.cs
- PolicyVersion.cs
- TypeSystem.cs
- TabControl.cs
- ContainsRowNumberChecker.cs
- AddInPipelineAttributes.cs
- MimeBasePart.cs
- SqlUtil.cs
- Int32EqualityComparer.cs
- BindingGraph.cs
- DataListItem.cs
- WorkflowMarkupSerializer.cs
- ToolStripGrip.cs
- AppDomainAttributes.cs
- GatewayDefinition.cs
- XmlSchemaObject.cs
- BinaryMessageFormatter.cs
- StopStoryboard.cs
- input.cs
- CodeIndexerExpression.cs
- InvalidWMPVersionException.cs
- AvTraceFormat.cs
- BindStream.cs
- RemoteWebConfigurationHost.cs
- XamlFilter.cs
- HTTPNotFoundHandler.cs
- CommonDialog.cs
- PropertyStore.cs
- MimeMapping.cs
- TraceListener.cs
- CodeTypeOfExpression.cs
- Psha1DerivedKeyGenerator.cs
- TransformGroup.cs
- InstanceOwnerException.cs
- PermissionSet.cs
- PermissionSet.cs
- RegexNode.cs
- BamlTreeUpdater.cs
- Substitution.cs
- AccessControlList.cs
- PublisherMembershipCondition.cs
- IndexerNameAttribute.cs
- OletxCommittableTransaction.cs
- Input.cs
- InvokeAction.cs
- EntityTypeEmitter.cs
- HttpHandlerActionCollection.cs
- SemanticResultKey.cs
- OptimalBreakSession.cs
- LicenseException.cs
- TagPrefixCollection.cs
- DataBoundControl.cs
- TraceContextRecord.cs
- TagPrefixAttribute.cs
- ByteAnimation.cs
- DateTimeOffsetStorage.cs
- VideoDrawing.cs
- AdapterSwitches.cs
- _LocalDataStore.cs
- DesignerProperties.cs
- DbExpressionVisitor_TResultType.cs
- SimpleMailWebEventProvider.cs
- BigIntegerStorage.cs
- DefinitionUpdate.cs
- ObjectPersistData.cs
- HtmlImage.cs
- Matrix.cs
- LockCookie.cs
- DesignTimeParseData.cs
- TextContainerChangeEventArgs.cs
- InProcStateClientManager.cs
- input.cs
- CodeActivityContext.cs
- HostingEnvironment.cs
- EntityModelBuildProvider.cs
- ImageListUtils.cs
- KerberosSecurityTokenProvider.cs
- BaseHashHelper.cs
- dataobject.cs
- WebBrowserNavigatingEventHandler.cs
- ColumnHeaderConverter.cs
- XmlObjectSerializerReadContextComplex.cs
- XsltArgumentList.cs
- XmlSerializableServices.cs
- BuildManager.cs
- Flattener.cs
- IgnoreSection.cs
- ActivityWithResultValueSerializer.cs
- HMAC.cs
- ProcessModelSection.cs
- DbConnectionClosed.cs
- FileEnumerator.cs
- GroupBox.cs
- ToolStripButton.cs
- __ConsoleStream.cs