Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IndentedTextWriter.cs
- ImageClickEventArgs.cs
- TabControl.cs
- ProcessModuleCollection.cs
- ApplicationServiceManager.cs
- ToolStripDropDownItemDesigner.cs
- Dictionary.cs
- SapiRecognizer.cs
- UTF8Encoding.cs
- HttpModuleAction.cs
- UpdateRecord.cs
- ServicesSection.cs
- httpstaticobjectscollection.cs
- AutomationFocusChangedEventArgs.cs
- SqlDataSourceEnumerator.cs
- FrameworkObject.cs
- CommandEventArgs.cs
- WebPartVerbCollection.cs
- RTLAwareMessageBox.cs
- SystemWebCachingSectionGroup.cs
- ObjRef.cs
- ObjectHandle.cs
- DefaultHttpHandler.cs
- SqlExpressionNullability.cs
- CompositeControl.cs
- __ComObject.cs
- SamlSubject.cs
- VectorCollectionConverter.cs
- Utils.cs
- Interlocked.cs
- ClickablePoint.cs
- XamlSerializationHelper.cs
- BitmapSizeOptions.cs
- CheckedListBox.cs
- RadioButtonStandardAdapter.cs
- AssemblyAttributes.cs
- CorePropertiesFilter.cs
- AnnotationDocumentPaginator.cs
- DataGridCell.cs
- EnumConverter.cs
- FileDialogPermission.cs
- SecurityKeyType.cs
- DataSourceXmlTextReader.cs
- PropertyTabAttribute.cs
- DesignerOptionService.cs
- ObjRef.cs
- TreeViewDesigner.cs
- ViewLoader.cs
- FastPropertyAccessor.cs
- ThreadStateException.cs
- QueryCursorEventArgs.cs
- NativeMethods.cs
- ButtonChrome.cs
- DataGridViewTextBoxColumn.cs
- ColumnCollectionEditor.cs
- DataContractAttribute.cs
- DynamicObject.cs
- RowCache.cs
- KeyManager.cs
- VirtualDirectoryMapping.cs
- WeakReferenceList.cs
- XDRSchema.cs
- DuplicateWaitObjectException.cs
- RadioButton.cs
- PageThemeCodeDomTreeGenerator.cs
- OutgoingWebResponseContext.cs
- ErrorHandler.cs
- WSHttpTransportSecurityElement.cs
- LambdaCompiler.Lambda.cs
- TextServicesCompartmentEventSink.cs
- Exceptions.cs
- StringConverter.cs
- MenuEventArgs.cs
- XmlResolver.cs
- HtmlControl.cs
- PropertyCondition.cs
- NativeMethods.cs
- XmlBindingWorker.cs
- BinaryObjectReader.cs
- ProxyGenerator.cs
- SqlDataSourceQuery.cs
- UnsafeNativeMethods.cs
- LoginView.cs
- DemultiplexingClientMessageFormatter.cs
- BigInt.cs
- ToolStripPanelCell.cs
- TextSimpleMarkerProperties.cs
- HwndSourceKeyboardInputSite.cs
- DataGridViewSelectedRowCollection.cs
- SafeMemoryMappedViewHandle.cs
- XmlSchemaExporter.cs
- DbXmlEnabledProviderManifest.cs
- WebPartPersonalization.cs
- SimpleNameService.cs
- CqlLexer.cs
- GridProviderWrapper.cs
- AuthenticationSection.cs
- WebPartMinimizeVerb.cs
- SqlTransaction.cs
- CompositeDataBoundControl.cs