Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 1305376 / EmbeddedMailObject.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Web.Mail; using System.Collections; using System.ComponentModel; using System.Globalization; using System.IO; using System.Drawing.Design; using System.Web; [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
- HighContrastHelper.cs
- Parameter.cs
- WebProxyScriptElement.cs
- MsmqIntegrationProcessProtocolHandler.cs
- AvtEvent.cs
- WinEventWrap.cs
- ResourceIDHelper.cs
- HebrewNumber.cs
- DiscoveryEndpointValidator.cs
- MimeTypeMapper.cs
- ScaleTransform3D.cs
- ProgressiveCrcCalculatingStream.cs
- Normalization.cs
- StylusPointCollection.cs
- Int64Storage.cs
- AdapterUtil.cs
- GatewayDefinition.cs
- ComponentCommands.cs
- HotSpotCollection.cs
- DataTableReader.cs
- WebContext.cs
- HtmlDocument.cs
- EncoderExceptionFallback.cs
- SqlReferenceCollection.cs
- WindowsNonControl.cs
- MainMenu.cs
- CardSpaceShim.cs
- EventProviderClassic.cs
- __FastResourceComparer.cs
- ObjectStorage.cs
- XhtmlBasicCommandAdapter.cs
- FontWeight.cs
- UdpReplyToBehavior.cs
- CommandBindingCollection.cs
- NativeRightsManagementAPIsStructures.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Walker.cs
- OleDbRowUpdatedEvent.cs
- DesignerDeviceConfig.cs
- AssertHelper.cs
- IODescriptionAttribute.cs
- DecimalConstantAttribute.cs
- ProcessThread.cs
- XmlChoiceIdentifierAttribute.cs
- _SSPIWrapper.cs
- typedescriptorpermissionattribute.cs
- AsyncPostBackErrorEventArgs.cs
- TimeSpanStorage.cs
- ByteArrayHelperWithString.cs
- HttpApplication.cs
- EmptyEnumerator.cs
- FlowDocument.cs
- Input.cs
- PageTheme.cs
- CombinedTcpChannel.cs
- RegexRunnerFactory.cs
- XmlWriterDelegator.cs
- SiteMapSection.cs
- StrokeNodeOperations2.cs
- ResXDataNode.cs
- DbProviderFactory.cs
- BuildManagerHost.cs
- Expr.cs
- xdrvalidator.cs
- CodeVariableReferenceExpression.cs
- CodeParameterDeclarationExpressionCollection.cs
- ItemDragEvent.cs
- CompositeControlDesigner.cs
- EdmItemCollection.cs
- SqlStream.cs
- DataGridViewBand.cs
- FontStyles.cs
- SevenBitStream.cs
- OleDbTransaction.cs
- StreamReader.cs
- CollectionViewProxy.cs
- BeginGetFileNameFromUserRequest.cs
- TextDecoration.cs
- SelectionRange.cs
- DbConnectionPoolOptions.cs
- ToolStripDropDownDesigner.cs
- ADMembershipProvider.cs
- HttpDictionary.cs
- BamlRecordHelper.cs
- CellIdBoolean.cs
- Group.cs
- ContractNamespaceAttribute.cs
- AllMembershipCondition.cs
- ExpandedWrapper.cs
- DataSetMappper.cs
- ParenthesizePropertyNameAttribute.cs
- ClonableStack.cs
- TableLayoutSettings.cs
- XmlLinkedNode.cs
- HttpRuntime.cs
- CodeNamespaceImportCollection.cs
- AutoScrollHelper.cs
- HttpContext.cs
- MimeTypePropertyAttribute.cs
- JsonEncodingStreamWrapper.cs