Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- StringFormat.cs
- SoapCodeExporter.cs
- HttpApplicationStateBase.cs
- Vars.cs
- WhitespaceSignificantCollectionAttribute.cs
- TypeSystem.cs
- SecurityAlgorithmSuiteConverter.cs
- ProcessHost.cs
- DataSourceHelper.cs
- EncryptedKey.cs
- MgmtConfigurationRecord.cs
- SecurityUniqueId.cs
- OperationCanceledException.cs
- MimeBasePart.cs
- BindingSource.cs
- WindowsPen.cs
- HeaderCollection.cs
- BaseAutoFormat.cs
- HttpFileCollectionWrapper.cs
- ValidatorCollection.cs
- HijriCalendar.cs
- UriScheme.cs
- MachineKeySection.cs
- DispatcherHookEventArgs.cs
- CodeDesigner.cs
- LayoutEvent.cs
- ValidatingReaderNodeData.cs
- BoundsDrawingContextWalker.cs
- SkewTransform.cs
- WrapPanel.cs
- MatrixAnimationUsingPath.cs
- File.cs
- InstanceContextMode.cs
- DispatcherFrame.cs
- HuffCodec.cs
- ListViewCancelEventArgs.cs
- SHA384.cs
- SelectionWordBreaker.cs
- DirtyTextRange.cs
- Tuple.cs
- QilLoop.cs
- XmlExceptionHelper.cs
- SQLSingleStorage.cs
- WebResponse.cs
- EllipticalNodeOperations.cs
- Utils.cs
- DataGridViewUtilities.cs
- AuthorizationSection.cs
- NamespaceDecl.cs
- XmlUtil.cs
- RevocationPoint.cs
- X509CertificateChain.cs
- odbcmetadatacollectionnames.cs
- HashStream.cs
- Atom10FormatterFactory.cs
- MetadataSource.cs
- ControlCachePolicy.cs
- SoapIgnoreAttribute.cs
- ObjectDataSource.cs
- EasingQuaternionKeyFrame.cs
- HebrewNumber.cs
- GeometryModel3D.cs
- HtmlControlPersistable.cs
- XmlSortKeyAccumulator.cs
- IgnoreDataMemberAttribute.cs
- DayRenderEvent.cs
- RequestChannel.cs
- ResXDataNode.cs
- StubHelpers.cs
- ApplyImportsAction.cs
- NegotiationTokenAuthenticatorState.cs
- Context.cs
- DataControlField.cs
- PersonalizationStateQuery.cs
- SoapTypeAttribute.cs
- SingleAnimationBase.cs
- GC.cs
- CLRBindingWorker.cs
- UnionCodeGroup.cs
- DispatcherTimer.cs
- StringSorter.cs
- ProviderUtil.cs
- StateValidator.cs
- Help.cs
- SspiSecurityTokenParameters.cs
- ListBindingHelper.cs
- XmlIlVisitor.cs
- AuthenticationConfig.cs
- ObjectQuery.cs
- CommandPlan.cs
- XamlReaderHelper.cs
- DataBoundControlActionList.cs
- SizeChangedEventArgs.cs
- ReachUIElementCollectionSerializerAsync.cs
- glyphs.cs
- DataColumnCollection.cs
- MemberDescriptor.cs
- Attributes.cs
- SqlCacheDependencyDatabase.cs
- DataBindingValueUIHandler.cs