Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SpeakProgressEventArgs.cs
- CommonProperties.cs
- NetSectionGroup.cs
- XmlMembersMapping.cs
- TypographyProperties.cs
- AttachInfo.cs
- SafeCryptHandles.cs
- GrammarBuilderPhrase.cs
- SemanticValue.cs
- ArrangedElementCollection.cs
- KnownIds.cs
- MemoryMappedViewStream.cs
- ProvidersHelper.cs
- OciEnlistContext.cs
- Registry.cs
- HandlerBase.cs
- SecurityContext.cs
- DeviceSpecific.cs
- ToolStripButton.cs
- CallContext.cs
- IdentitySection.cs
- FrameworkContextData.cs
- WebPartVerb.cs
- NotFiniteNumberException.cs
- _AuthenticationState.cs
- BinaryWriter.cs
- PixelFormatConverter.cs
- DropSource.cs
- DataChangedEventManager.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- FrameworkContentElement.cs
- DoubleUtil.cs
- IResourceProvider.cs
- TreeViewHitTestInfo.cs
- PropagatorResult.cs
- RecognizedAudio.cs
- SingleResultAttribute.cs
- WebResponse.cs
- ObjectItemCachedAssemblyLoader.cs
- PeerChannelFactory.cs
- SchemaImporterExtension.cs
- ModelFunctionTypeElement.cs
- SizeValueSerializer.cs
- ServiceChannelProxy.cs
- TcpConnectionPoolSettings.cs
- ScrollChrome.cs
- MessagePropertyAttribute.cs
- HWStack.cs
- TimeSpanMinutesConverter.cs
- XmlSchemaSimpleContent.cs
- ControlAdapter.cs
- CommonXSendMessage.cs
- AncestorChangedEventArgs.cs
- OutputCacheProfileCollection.cs
- XmlQueryOutput.cs
- WebHttpEndpoint.cs
- PrintControllerWithStatusDialog.cs
- QuaternionAnimation.cs
- EventMappingSettings.cs
- XmlSchemaInferenceException.cs
- CompoundFileDeflateTransform.cs
- SizeF.cs
- CancellableEnumerable.cs
- Validator.cs
- SingleAnimation.cs
- AtomPub10ServiceDocumentFormatter.cs
- LocalizationParserHooks.cs
- ToolStripContainer.cs
- PropertyReference.cs
- SqlConnectionString.cs
- WsrmMessageInfo.cs
- MultilineStringConverter.cs
- LayeredChannelFactory.cs
- OracleSqlParser.cs
- BitmapPalettes.cs
- RequestCache.cs
- JapaneseCalendar.cs
- OutKeywords.cs
- ServiceBusyException.cs
- XmlTextAttribute.cs
- ColumnResult.cs
- ProxyManager.cs
- FieldToken.cs
- FreeFormDragDropManager.cs
- DragStartedEventArgs.cs
- UpdateExpressionVisitor.cs
- Pair.cs
- RenderTargetBitmap.cs
- ClientSettingsSection.cs
- CheckBoxPopupAdapter.cs
- TrustVersion.cs
- BitmapScalingModeValidation.cs
- XmlFileEditor.cs
- HttpClientProtocol.cs
- WeakReference.cs
- AnnotationMap.cs
- XmlWriterDelegator.cs
- MaskedTextProvider.cs
- EmptyReadOnlyDictionaryInternal.cs
- PeerSecurityHelpers.cs