Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TextTrailingCharacterEllipsis.cs
- DataServiceResponse.cs
- SelectedDatesCollection.cs
- BaseAutoFormat.cs
- ObjectSpanRewriter.cs
- MatrixAnimationBase.cs
- Point3DConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- ListenerServiceInstallComponent.cs
- HttpCapabilitiesBase.cs
- Preprocessor.cs
- QilNode.cs
- XhtmlBasicValidationSummaryAdapter.cs
- Ref.cs
- IdentityNotMappedException.cs
- SqlException.cs
- CommandConverter.cs
- XMLUtil.cs
- FloaterParagraph.cs
- DataSourceCacheDurationConverter.cs
- Int32Rect.cs
- ListManagerBindingsCollection.cs
- FieldDescriptor.cs
- EdmSchemaError.cs
- RouteCollection.cs
- PnrpPeerResolverElement.cs
- AlphabeticalEnumConverter.cs
- CacheVirtualItemsEvent.cs
- WebSysDescriptionAttribute.cs
- elementinformation.cs
- RegexRunnerFactory.cs
- TextRangeProviderWrapper.cs
- SecurityRuntime.cs
- XPathCompileException.cs
- ContextQuery.cs
- BuildProvider.cs
- _SslState.cs
- EdmError.cs
- _NtlmClient.cs
- CaseExpr.cs
- SecurityState.cs
- TypeDelegator.cs
- ObjectDataSourceView.cs
- RawStylusInputReport.cs
- StrokeCollection.cs
- _LocalDataStoreMgr.cs
- DrawingBrush.cs
- DynamicDataRouteHandler.cs
- FrameworkObject.cs
- ControlEvent.cs
- MessageTraceRecord.cs
- Compensate.cs
- CodeSnippetTypeMember.cs
- DeferrableContentConverter.cs
- IdentityVerifier.cs
- XPathDocumentNavigator.cs
- DynamicUpdateCommand.cs
- NavigationPropertyAccessor.cs
- FilteredDataSetHelper.cs
- InvokeMemberBinder.cs
- PngBitmapEncoder.cs
- SequenceDesignerAccessibleObject.cs
- SecurityHelper.cs
- PipeStream.cs
- HtmlTableCell.cs
- ObjectDesignerDataSourceView.cs
- UIElementParaClient.cs
- DecoderFallbackWithFailureFlag.cs
- SmiXetterAccessMap.cs
- XmlWellformedWriter.cs
- MenuItem.cs
- NavigationPropertySingletonExpression.cs
- CompositeControl.cs
- SignatureDescription.cs
- Tablet.cs
- RecordsAffectedEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- TransformProviderWrapper.cs
- ChangePassword.cs
- EmptyReadOnlyDictionaryInternal.cs
- Matrix3DConverter.cs
- WmlLinkAdapter.cs
- JsonWriter.cs
- SqlConnectionHelper.cs
- ScrollPattern.cs
- CreateUserWizard.cs
- SpecialFolderEnumConverter.cs
- SafeHandle.cs
- SQLDateTimeStorage.cs
- WebExceptionStatus.cs
- KeyedCollection.cs
- DetailsView.cs
- ProxyWebPartConnectionCollection.cs
- SystemMulticastIPAddressInformation.cs
- NamespaceInfo.cs
- LinqDataSourceStatusEventArgs.cs
- ClientBuildManager.cs
- FtpRequestCacheValidator.cs
- FullTextBreakpoint.cs
- BCLDebug.cs