Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VariantWrapper.cs
- DBNull.cs
- StringBuilder.cs
- TextInfo.cs
- FormViewCommandEventArgs.cs
- ToolStripOverflowButton.cs
- SemanticResolver.cs
- InlinedAggregationOperatorEnumerator.cs
- CounterCreationData.cs
- EntityContainerEntitySet.cs
- EncodingNLS.cs
- WebPartZoneBase.cs
- ProcessHost.cs
- TextLine.cs
- TraversalRequest.cs
- PowerStatus.cs
- FixedSOMFixedBlock.cs
- WindowsScroll.cs
- BitmapSourceSafeMILHandle.cs
- DataServiceKeyAttribute.cs
- WindowsNonControl.cs
- GeneralTransformGroup.cs
- CreateUserErrorEventArgs.cs
- X509CertificateChain.cs
- SmtpMail.cs
- WindowsAuthenticationModule.cs
- RTLAwareMessageBox.cs
- MessageDecoder.cs
- HtmlInputImage.cs
- FileCodeGroup.cs
- CultureInfoConverter.cs
- DrawingAttributes.cs
- WindowsProgressbar.cs
- ContentDesigner.cs
- OperationAbortedException.cs
- ArrangedElement.cs
- WmlLabelAdapter.cs
- ComPlusAuthorization.cs
- PassportAuthenticationEventArgs.cs
- CodeTypeReferenceCollection.cs
- DeclarativeExpressionConditionDeclaration.cs
- ValidatorUtils.cs
- IPEndPoint.cs
- CaseInsensitiveHashCodeProvider.cs
- PropertyValueUIItem.cs
- NativeCompoundFileAPIs.cs
- RtfControlWordInfo.cs
- WebChannelFactory.cs
- CodeExpressionCollection.cs
- DefaultPropertyAttribute.cs
- SynchronizationContext.cs
- RemotingException.cs
- CmsInterop.cs
- DataRowCollection.cs
- BuildProvider.cs
- DocumentViewerAutomationPeer.cs
- OpenFileDialog.cs
- AsymmetricKeyExchangeDeformatter.cs
- StreamInfo.cs
- RawStylusSystemGestureInputReport.cs
- TextAnchor.cs
- DataFieldConverter.cs
- ManagedWndProcTracker.cs
- AccessorTable.cs
- ConfigurationStrings.cs
- MetabaseSettingsIis7.cs
- PolicyLevel.cs
- Attributes.cs
- EntityDataSource.cs
- PartialList.cs
- WSHttpSecurityElement.cs
- BitmapEffectCollection.cs
- ScriptReferenceBase.cs
- DeviceContexts.cs
- WorkflowQueuingService.cs
- SafeCoTaskMem.cs
- CorrelationToken.cs
- HwndMouseInputProvider.cs
- SymLanguageVendor.cs
- XPathBinder.cs
- FactoryMaker.cs
- ArrangedElementCollection.cs
- XPathException.cs
- MemoryStream.cs
- LockRecoveryTask.cs
- EntryWrittenEventArgs.cs
- _HelperAsyncResults.cs
- TextDecoration.cs
- LayoutSettings.cs
- ConnectionStringsExpressionBuilder.cs
- FormViewCommandEventArgs.cs
- ConfigXmlText.cs
- SerializationAttributes.cs
- ICspAsymmetricAlgorithm.cs
- SQLString.cs
- DbTransaction.cs
- MapPathBasedVirtualPathProvider.cs
- RuntimeEnvironment.cs
- OdbcException.cs
- RegistryKey.cs