Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataGridViewCellCancelEventArgs.cs
- StopRoutingHandler.cs
- HeaderCollection.cs
- ellipse.cs
- Label.cs
- SqlDataSourceFilteringEventArgs.cs
- PolicyStatement.cs
- StateWorkerRequest.cs
- DbConnectionPoolGroupProviderInfo.cs
- DynamicDiscoSearcher.cs
- ArrayWithOffset.cs
- ProvidersHelper.cs
- QilVisitor.cs
- ValidationError.cs
- BindingContext.cs
- OleDbPropertySetGuid.cs
- TrustSection.cs
- SQLBinaryStorage.cs
- DataGridViewColumn.cs
- RowToFieldTransformer.cs
- ComboBoxHelper.cs
- Button.cs
- SqlAliasesReferenced.cs
- WindowsRichEdit.cs
- SqlBulkCopyColumnMapping.cs
- SiteIdentityPermission.cs
- PropertyDescriptors.cs
- DetailsViewRowCollection.cs
- GeneralTransformGroup.cs
- Accessible.cs
- Win32.cs
- PEFileReader.cs
- NavigationCommands.cs
- HMACSHA384.cs
- PeerUnsafeNativeMethods.cs
- sitestring.cs
- XmlSchemaSimpleTypeUnion.cs
- XmlDownloadManager.cs
- ConfigXmlCDataSection.cs
- FormViewCommandEventArgs.cs
- ECDiffieHellmanCngPublicKey.cs
- PixelFormatConverter.cs
- EnumValAlphaComparer.cs
- SemanticTag.cs
- IFlowDocumentViewer.cs
- _AutoWebProxyScriptEngine.cs
- Run.cs
- XXXInfos.cs
- ErrorFormatterPage.cs
- CustomAttributeBuilder.cs
- QueueProcessor.cs
- QueryStringParameter.cs
- VersionedStreamOwner.cs
- DisplayClaim.cs
- CroppedBitmap.cs
- FunctionDefinition.cs
- MappingMetadataHelper.cs
- BasePropertyDescriptor.cs
- OrderToken.cs
- ItemCheckedEvent.cs
- Constants.cs
- codemethodreferenceexpression.cs
- OperationCanceledException.cs
- AddInContractAttribute.cs
- Parser.cs
- XmlException.cs
- SafeHandles.cs
- WebPartDisplayModeCancelEventArgs.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SqlConnectionHelper.cs
- securitymgrsite.cs
- ContextMenu.cs
- WebPartTransformerCollection.cs
- ListViewItemEventArgs.cs
- FixedHyperLink.cs
- ErrorTolerantObjectWriter.cs
- AuthorizationRuleCollection.cs
- base64Transforms.cs
- Typography.cs
- FontUnitConverter.cs
- WebPartConnectVerb.cs
- BitmapEffectInput.cs
- ProgressBarAutomationPeer.cs
- SystemUdpStatistics.cs
- ParseChildrenAsPropertiesAttribute.cs
- SchemaImporterExtension.cs
- SqlStatistics.cs
- TrimSurroundingWhitespaceAttribute.cs
- ToolboxCategoryItems.cs
- ExpressionBinding.cs
- SerializationInfo.cs
- TextSearch.cs
- OrderByQueryOptionExpression.cs
- SortedDictionary.cs
- WebServiceFault.cs
- LocalBuilder.cs
- DesignBinding.cs
- mda.cs
- MessageFilterException.cs
- TransactionScope.cs