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
- MediaSystem.cs
- RSAProtectedConfigurationProvider.cs
- Array.cs
- DataSourceControl.cs
- HandlerBase.cs
- SystemWebSectionGroup.cs
- WSHttpBinding.cs
- TwoPhaseCommitProxy.cs
- ActivityCodeDomSerializationManager.cs
- OdbcHandle.cs
- DbConnectionPool.cs
- XmlWhitespace.cs
- Font.cs
- InfoCardTrace.cs
- QueryOutputWriter.cs
- WebPartCatalogAddVerb.cs
- ModelItemDictionary.cs
- NavigatorInput.cs
- SendReply.cs
- ErrorProvider.cs
- TextOnlyOutput.cs
- ConfigErrorGlyph.cs
- DictionaryTraceRecord.cs
- WebPartZoneBase.cs
- QilTypeChecker.cs
- DecimalConstantAttribute.cs
- CompilerParameters.cs
- ActivityInfo.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CodeRegionDirective.cs
- Cell.cs
- DataGridViewLinkCell.cs
- CodeMethodReturnStatement.cs
- SqlTriggerAttribute.cs
- RuntimeHelpers.cs
- ResetableIterator.cs
- TextBounds.cs
- ToolTip.cs
- SettingsContext.cs
- ProcessInfo.cs
- AddingNewEventArgs.cs
- DeviceSpecificDialogCachedState.cs
- TextSegment.cs
- TextTreeRootTextBlock.cs
- XslCompiledTransform.cs
- COM2PictureConverter.cs
- TimeSpan.cs
- ArgumentReference.cs
- UniqueIdentifierService.cs
- IDictionary.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CustomErrorCollection.cs
- PrintingPermissionAttribute.cs
- EventData.cs
- ImageListDesigner.cs
- SelectionRangeConverter.cs
- TimeSpanOrInfiniteConverter.cs
- AsymmetricKeyExchangeFormatter.cs
- XmlNotation.cs
- MetricEntry.cs
- SourceInterpreter.cs
- HyperLinkColumn.cs
- WebPartActionVerb.cs
- BitmapFrame.cs
- ObjectDataSourceDisposingEventArgs.cs
- CharEnumerator.cs
- TimeoutHelper.cs
- ConnectionManagementElementCollection.cs
- CatalogPartChrome.cs
- PeerPresenceInfo.cs
- ReflectionTypeLoadException.cs
- OwnerDrawPropertyBag.cs
- JournalNavigationScope.cs
- PartialArray.cs
- SecurityState.cs
- Misc.cs
- XmlSchemaSet.cs
- _NetRes.cs
- EarlyBoundInfo.cs
- DataBindEngine.cs
- DataGridPagerStyle.cs
- AssemblyAttributes.cs
- GraphicsPathIterator.cs
- DrawingVisual.cs
- StateBag.cs
- DataGridViewElement.cs
- ScriptReferenceEventArgs.cs
- DirectoryRedirect.cs
- Material.cs
- DiffuseMaterial.cs
- ApplicationDirectoryMembershipCondition.cs
- storepermission.cs
- DetailsViewRowCollection.cs
- DoubleMinMaxAggregationOperator.cs
- ExtenderProvidedPropertyAttribute.cs
- TimeSpanValidator.cs
- Point3DCollection.cs
- UriScheme.cs
- HwndAppCommandInputProvider.cs
- StringAnimationUsingKeyFrames.cs