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
- SerTrace.cs
- IInstanceContextProvider.cs
- FormsAuthenticationUserCollection.cs
- Html32TextWriter.cs
- CompositeTypefaceMetrics.cs
- TransactionContext.cs
- HMACSHA384.cs
- ExpressionConverter.cs
- oledbmetadatacolumnnames.cs
- XmlWriter.cs
- NativeBuffer.cs
- HttpWebResponse.cs
- JsonWriter.cs
- StretchValidation.cs
- Typography.cs
- DiscoveryMessageSequenceGenerator.cs
- ResXBuildProvider.cs
- DecoderReplacementFallback.cs
- SelectionItemPattern.cs
- XmlSchemaValidator.cs
- BackgroundFormatInfo.cs
- Scene3D.cs
- DataPagerCommandEventArgs.cs
- SqlTriggerContext.cs
- Main.cs
- ResourceManagerWrapper.cs
- EditingCoordinator.cs
- SafeHandles.cs
- AutoGeneratedField.cs
- OciHandle.cs
- TemplateParser.cs
- MetadataItemEmitter.cs
- TemplatePartAttribute.cs
- PerspectiveCamera.cs
- SiteMapDataSourceDesigner.cs
- ApplicationSecurityInfo.cs
- TextParaClient.cs
- TextDpi.cs
- IPAddress.cs
- DataGridViewComboBoxEditingControl.cs
- DockProviderWrapper.cs
- ToolStripScrollButton.cs
- QuerySettings.cs
- HtmlContainerControl.cs
- ExternalFile.cs
- DescriptionAttribute.cs
- FormatConvertedBitmap.cs
- Debugger.cs
- PropertyIDSet.cs
- Stylesheet.cs
- RootBrowserWindowAutomationPeer.cs
- TabletDeviceInfo.cs
- ConnectionOrientedTransportBindingElement.cs
- FormatterConverter.cs
- TextSerializer.cs
- PriorityItem.cs
- XPathNodeList.cs
- DropDownList.cs
- ClipboardProcessor.cs
- DataContractJsonSerializer.cs
- PermissionAttributes.cs
- ExpressionCopier.cs
- EntityDataSourceSelectedEventArgs.cs
- SpeechAudioFormatInfo.cs
- sqlnorm.cs
- GlobalizationSection.cs
- HostDesigntimeLicenseContext.cs
- HierarchicalDataBoundControlAdapter.cs
- ContainerFilterService.cs
- SpeechAudioFormatInfo.cs
- FigureParagraph.cs
- GeneralTransform.cs
- MenuCommands.cs
- CompiledIdentityConstraint.cs
- TrustSection.cs
- DateTimeFormat.cs
- InvokeHandlers.cs
- TrustLevelCollection.cs
- ResourceDefaultValueAttribute.cs
- DataGridViewCheckBoxColumn.cs
- ImageCreator.cs
- Stopwatch.cs
- bidPrivateBase.cs
- WindowsScrollBarBits.cs
- SafeLibraryHandle.cs
- TreeViewHitTestInfo.cs
- SimpleType.cs
- QilGenerator.cs
- Vector3dCollection.cs
- ManifestSignatureInformation.cs
- WindowsFormsSynchronizationContext.cs
- TextEditorTables.cs
- EncoderBestFitFallback.cs
- HttpVersion.cs
- StructuredProperty.cs
- PackUriHelper.cs
- PeerNode.cs
- RowUpdatingEventArgs.cs
- PolyQuadraticBezierSegment.cs
- RootNamespaceAttribute.cs