Code:
/ FX-1434 / FX-1434 / 1.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
- InputProviderSite.cs
- ReadingWritingEntityEventArgs.cs
- SerializationUtilities.cs
- TextDecoration.cs
- ImplicitInputBrush.cs
- BaseResourcesBuildProvider.cs
- ChangeNode.cs
- Array.cs
- QilXmlWriter.cs
- TypeSource.cs
- UTF32Encoding.cs
- KoreanCalendar.cs
- PointAnimationUsingPath.cs
- ApplicationBuildProvider.cs
- ToolStripPanelRow.cs
- XmlCharType.cs
- FontClient.cs
- EastAsianLunisolarCalendar.cs
- DataGridViewSelectedCellCollection.cs
- ClientConvert.cs
- TextLineBreak.cs
- EncodingDataItem.cs
- COSERVERINFO.cs
- XNodeValidator.cs
- QilTargetType.cs
- RewritingPass.cs
- ManagementOperationWatcher.cs
- AuthenticationConfig.cs
- DbException.cs
- DBSqlParserTable.cs
- XmlNullResolver.cs
- MetadataArtifactLoader.cs
- CharacterHit.cs
- NGCSerializationManagerAsync.cs
- XmlText.cs
- RunInstallerAttribute.cs
- Main.cs
- EntryWrittenEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- SafeEventLogWriteHandle.cs
- BinaryObjectWriter.cs
- MultiAsyncResult.cs
- ReliabilityContractAttribute.cs
- FixUpCollection.cs
- BrowserCapabilitiesCompiler.cs
- ToolStripLabel.cs
- GeneralTransform3DGroup.cs
- StringValidatorAttribute.cs
- PermissionAttributes.cs
- XmlSortKeyAccumulator.cs
- SqlDataSourceQueryEditorForm.cs
- PassportIdentity.cs
- SettingsProviderCollection.cs
- ItemMap.cs
- WebPartConnection.cs
- Activator.cs
- SByteStorage.cs
- ParallelEnumerableWrapper.cs
- ToolConsole.cs
- TemplateBuilder.cs
- XmlValidatingReaderImpl.cs
- ListViewUpdatedEventArgs.cs
- XPathSelfQuery.cs
- SQLChars.cs
- MultiDataTrigger.cs
- Verify.cs
- MsmqAuthenticationMode.cs
- WebCategoryAttribute.cs
- TreeViewImageKeyConverter.cs
- Duration.cs
- WindowsGraphicsCacheManager.cs
- KeyValuePairs.cs
- Compress.cs
- DropShadowEffect.cs
- SecurityUniqueId.cs
- DataGridTextBoxColumn.cs
- DrawingDrawingContext.cs
- autovalidator.cs
- APCustomTypeDescriptor.cs
- Command.cs
- Cursors.cs
- SchemaImporter.cs
- TypeDescriptorContext.cs
- GridSplitterAutomationPeer.cs
- StartUpEventArgs.cs
- KeyBinding.cs
- Helper.cs
- NotifyInputEventArgs.cs
- DetailsViewPageEventArgs.cs
- ResourceKey.cs
- SoapFaultCodes.cs
- TextFormatter.cs
- SymLanguageType.cs
- WinCategoryAttribute.cs
- SqlCommand.cs
- NavigationCommands.cs
- BinHexDecoder.cs
- RtfControlWordInfo.cs
- HttpApplicationFactory.cs
- OdbcException.cs