Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObject.cs / 1305376 / EmbeddedMailObject.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System.Web.Mail;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Drawing.Design;
using System.Web;
[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.Web.Mail;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Drawing.Design;
using System.Web;
[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
- SoapTypeAttribute.cs
- HMACSHA256.cs
- Sql8ConformanceChecker.cs
- DictionaryEntry.cs
- ServiceOperationViewControl.cs
- PersonalizableTypeEntry.cs
- WindowsTooltip.cs
- PopupRoot.cs
- ReadOnlyDictionary.cs
- DesignerProperties.cs
- DataGridViewCellPaintingEventArgs.cs
- VBCodeProvider.cs
- SEHException.cs
- QilParameter.cs
- SqlDataSourceConfigureSortForm.cs
- ByteStack.cs
- Label.cs
- CodeConditionStatement.cs
- Underline.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- TableAdapterManagerGenerator.cs
- TargetControlTypeCache.cs
- HMACRIPEMD160.cs
- OneWayBindingElementImporter.cs
- FixedDocument.cs
- MenuDesigner.cs
- BitStream.cs
- TransactionBehavior.cs
- HTMLTagNameToTypeMapper.cs
- SqlCacheDependencySection.cs
- RowsCopiedEventArgs.cs
- OAVariantLib.cs
- _BufferOffsetSize.cs
- DataControlFieldsEditor.cs
- RandomNumberGenerator.cs
- CompositeCollectionView.cs
- ToolboxItemLoader.cs
- HttpCachePolicyElement.cs
- SchemaMapping.cs
- counter.cs
- ToolZoneDesigner.cs
- TextEffect.cs
- ToolboxControl.cs
- Point3DConverter.cs
- QuaternionKeyFrameCollection.cs
- BigInt.cs
- SetterBaseCollection.cs
- XslCompiledTransform.cs
- ImmutableObjectAttribute.cs
- XmlSchemaAppInfo.cs
- MaterialCollection.cs
- _AuthenticationState.cs
- FontFamily.cs
- XslAst.cs
- BitmapCodecInfoInternal.cs
- GetReadStreamResult.cs
- DiscriminatorMap.cs
- TargetConverter.cs
- TypeReference.cs
- LinkAreaEditor.cs
- InteropBitmapSource.cs
- RenderOptions.cs
- PenLineJoinValidation.cs
- UnsafeNativeMethods.cs
- ToolStripDropDownMenu.cs
- _AutoWebProxyScriptEngine.cs
- DoubleAnimationClockResource.cs
- WebResourceAttribute.cs
- NonNullItemCollection.cs
- ButtonBase.cs
- EtwProvider.cs
- CommandLineParser.cs
- TypeBuilderInstantiation.cs
- FormattedTextSymbols.cs
- HtmlElementEventArgs.cs
- _NegoState.cs
- ChtmlTextBoxAdapter.cs
- DataViewListener.cs
- SolidColorBrush.cs
- SystemKeyConverter.cs
- RTTypeWrapper.cs
- TextElementAutomationPeer.cs
- ReferenceConverter.cs
- TemplateApplicationHelper.cs
- UpdateProgress.cs
- Int64AnimationUsingKeyFrames.cs
- ToolStripRendererSwitcher.cs
- ListComponentEditor.cs
- DataGridAddNewRow.cs
- TeredoHelper.cs
- IsolatedStoragePermission.cs
- ColumnHeader.cs
- XmlObjectSerializerReadContextComplex.cs
- ObjectListItem.cs
- Filter.cs
- CounterCreationDataConverter.cs
- InputScopeAttribute.cs
- VisualTarget.cs
- ConfigurationValidatorBase.cs
- RuntimeCompatibilityAttribute.cs