Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- URLMembershipCondition.cs
- UriSection.cs
- CodeDirectoryCompiler.cs
- SeekStoryboard.cs
- ToolStripEditorManager.cs
- ReflectEventDescriptor.cs
- PageCodeDomTreeGenerator.cs
- StreamWriter.cs
- SafeMILHandleMemoryPressure.cs
- RectIndependentAnimationStorage.cs
- DataGridViewRowEventArgs.cs
- DataTrigger.cs
- SmtpFailedRecipientsException.cs
- XmlTextReaderImplHelpers.cs
- FormsAuthenticationTicket.cs
- DataViewSetting.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DrawTreeNodeEventArgs.cs
- TemplateBamlTreeBuilder.cs
- Comparer.cs
- WorkflowStateRollbackService.cs
- PageBuildProvider.cs
- PersonalizationStateQuery.cs
- KoreanCalendar.cs
- GeometryGroup.cs
- LogWriteRestartAreaAsyncResult.cs
- DateRangeEvent.cs
- LassoSelectionBehavior.cs
- TimeSpan.cs
- SqlReferenceCollection.cs
- LabelAutomationPeer.cs
- UidManager.cs
- ResponseStream.cs
- VectorCollectionValueSerializer.cs
- TaiwanLunisolarCalendar.cs
- ConditionalExpression.cs
- XmlCountingReader.cs
- OracleInfoMessageEventArgs.cs
- InfoCardSchemas.cs
- URLBuilder.cs
- TouchEventArgs.cs
- WriteLineDesigner.xaml.cs
- RtfControlWordInfo.cs
- PeerApplicationLaunchInfo.cs
- _TransmitFileOverlappedAsyncResult.cs
- OrderByQueryOptionExpression.cs
- IdentityNotMappedException.cs
- TrackingStringDictionary.cs
- NotificationContext.cs
- SchemaImporterExtensionElementCollection.cs
- GridSplitterAutomationPeer.cs
- QueryPageSettingsEventArgs.cs
- ImageKeyConverter.cs
- OpacityConverter.cs
- StylusSystemGestureEventArgs.cs
- FileNotFoundException.cs
- UDPClient.cs
- GenericEnumerator.cs
- ScaleTransform.cs
- GridViewSortEventArgs.cs
- PropertyGridEditorPart.cs
- VariableQuery.cs
- LinqDataSourceView.cs
- SafeUserTokenHandle.cs
- StylusPointProperties.cs
- Stopwatch.cs
- BasicExpressionVisitor.cs
- Camera.cs
- SiteMapDataSource.cs
- FontConverter.cs
- PropertyExpression.cs
- CodeDomLocalizationProvider.cs
- _PooledStream.cs
- Sql8ConformanceChecker.cs
- MemberAccessException.cs
- LoginCancelEventArgs.cs
- PostBackOptions.cs
- FamilyTypeface.cs
- EventPropertyMap.cs
- WsdlEndpointConversionContext.cs
- XmlSchemaSimpleTypeList.cs
- WebConvert.cs
- Repeater.cs
- LocalBuilder.cs
- TextSegment.cs
- ItemsPanelTemplate.cs
- SimpleWebHandlerParser.cs
- ProvideValueServiceProvider.cs
- HyperLink.cs
- LineGeometry.cs
- StringPropertyBuilder.cs
- ModuleBuilder.cs
- UITypeEditors.cs
- ConvertBinder.cs
- WebPermission.cs
- XmlTextReader.cs
- DesigntimeLicenseContext.cs
- UnsafeNativeMethods.cs
- DoubleAnimationClockResource.cs
- WebPartConnectionCollection.cs