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
- MethodAccessException.cs
- ToolStripHighContrastRenderer.cs
- SocketElement.cs
- DeleteWorkflowOwnerCommand.cs
- SelectedGridItemChangedEvent.cs
- GridErrorDlg.cs
- XmlAttributeProperties.cs
- ColorTransformHelper.cs
- GridPatternIdentifiers.cs
- DataContractAttribute.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- RoleService.cs
- ToolStripOverflowButton.cs
- ListViewSortEventArgs.cs
- PartManifestEntry.cs
- MessageSecurityOverHttpElement.cs
- PortCache.cs
- TextAction.cs
- UTF8Encoding.cs
- followingquery.cs
- FontStretches.cs
- GroupBox.cs
- AttachedAnnotationChangedEventArgs.cs
- KeyboardDevice.cs
- XmlValidatingReader.cs
- BoolExpressionVisitors.cs
- DataGridItem.cs
- EventSourceCreationData.cs
- SqlStream.cs
- DbConnectionPoolOptions.cs
- WebPartMinimizeVerb.cs
- HostDesigntimeLicenseContext.cs
- FilteredXmlReader.cs
- ToolStripEditorManager.cs
- ProbeRequestResponseAsyncResult.cs
- ProviderMetadataCachedInformation.cs
- ContextMenuStripGroup.cs
- ParallelTimeline.cs
- TextEffect.cs
- DiscreteKeyFrames.cs
- TrackingProfile.cs
- FigureParaClient.cs
- TreeNodeConverter.cs
- RenderTargetBitmap.cs
- NegationPusher.cs
- XmlQueryOutput.cs
- ProcessModule.cs
- SeverityFilter.cs
- EffectiveValueEntry.cs
- FormsIdentity.cs
- ElementAction.cs
- SecurityTokenAuthenticator.cs
- OwnerDrawPropertyBag.cs
- EnumConverter.cs
- WorkflowRuntimeService.cs
- OdbcHandle.cs
- ToolStripContainer.cs
- IdentityReference.cs
- infer.cs
- PropertyFilter.cs
- ContentType.cs
- ConstraintConverter.cs
- RequestBringIntoViewEventArgs.cs
- ErrorProvider.cs
- VariableExpressionConverter.cs
- DataContractSerializerElement.cs
- SelectedDatesCollection.cs
- ReliableChannelListener.cs
- HttpListenerContext.cs
- OutputCacheProfileCollection.cs
- PropertyManager.cs
- ImageMetadata.cs
- XmlComment.cs
- WCFServiceClientProxyGenerator.cs
- SequentialUshortCollection.cs
- XPathDocument.cs
- EncoderParameter.cs
- Tuple.cs
- RegexParser.cs
- BulletedListEventArgs.cs
- XmlTextReaderImpl.cs
- EventLogConfiguration.cs
- Parameter.cs
- Closure.cs
- Pen.cs
- XmlAtomicValue.cs
- XmlSchemaObjectTable.cs
- Material.cs
- WeakReferenceList.cs
- StatusBarDrawItemEvent.cs
- TraceSection.cs
- BitmapEffectGroup.cs
- TemplateBindingExpression.cs
- HttpContextBase.cs
- DescendantOverDescendantQuery.cs
- MemoryPressure.cs
- BitmapEffectGroup.cs
- HtmlTernaryTree.cs
- EventMappingSettings.cs
- SeparatorAutomationPeer.cs