Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObjectsCollection.cs / 1305376 / EmbeddedMailObjectsCollection.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.IO; using System.Drawing.Design; using System.Web; [Editor("System.Web.UI.Design.WebControls.EmbeddedMailObjectCollectionEditor, " + AssemblyRef.SystemDesign, typeof(UITypeEditor))] public sealed class EmbeddedMailObjectsCollection : CollectionBase { public EmbeddedMailObject this[int index] { get { return (EmbeddedMailObject)List[index]; } set { List[index] = value; } } public int Add(EmbeddedMailObject value) { return List.Add(value); } public bool Contains(EmbeddedMailObject value) { return List.Contains(value); } public void CopyTo(EmbeddedMailObject[] array, int index) { List.CopyTo(array, index); } public int IndexOf(EmbeddedMailObject value) { return List.IndexOf(value); } public void Insert(int index, EmbeddedMailObject value) { List.Insert(index, value); } protected override void OnValidate(object value) { base.OnValidate(value); if (value == null) { throw new ArgumentNullException("value", SR.GetString(SR.Collection_CantAddNull)); } if (!(value is EmbeddedMailObject)) { throw new ArgumentException(SR.GetString(SR.Collection_InvalidType, "EmbeddedMailObject"), "value"); } } public void Remove(EmbeddedMailObject value) { List.Remove(value); } } } // 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
- ComContractElement.cs
- QueryCacheEntry.cs
- EnumerableCollectionView.cs
- LocalizabilityAttribute.cs
- _SslStream.cs
- SiteMapHierarchicalDataSourceView.cs
- RepeaterCommandEventArgs.cs
- SecUtil.cs
- StringAttributeCollection.cs
- BamlStream.cs
- FormCollection.cs
- LookupNode.cs
- FontDriver.cs
- GeneralTransform.cs
- SecurityDescriptor.cs
- SAPIEngineTypes.cs
- ConnectionOrientedTransportManager.cs
- FontSource.cs
- InputScopeConverter.cs
- ResourcesChangeInfo.cs
- ApplicationId.cs
- SoapTypeAttribute.cs
- SmtpException.cs
- JumpItem.cs
- SiteMapProvider.cs
- WindowsFont.cs
- QuotedPairReader.cs
- XPathSelfQuery.cs
- OleDbConnectionInternal.cs
- TextDecorationLocationValidation.cs
- BrowserCapabilitiesFactory.cs
- UniformGrid.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- MouseActionConverter.cs
- objectresult_tresulttype.cs
- BatchStream.cs
- AssociationProvider.cs
- InternalMappingException.cs
- StreamGeometry.cs
- CacheModeValueSerializer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- WebPartVerbCollection.cs
- COM2IPerPropertyBrowsingHandler.cs
- TextTabProperties.cs
- RuntimeConfig.cs
- CompressionTransform.cs
- TemplateBindingExpression.cs
- VersionedStreamOwner.cs
- MouseActionConverter.cs
- XmlAnyElementAttribute.cs
- XmlSerializerVersionAttribute.cs
- PointAnimationUsingKeyFrames.cs
- TraceListener.cs
- COM2ExtendedTypeConverter.cs
- RequestBringIntoViewEventArgs.cs
- DesignerAttribute.cs
- ScrollEvent.cs
- ResourceExpressionBuilder.cs
- EditorZoneBase.cs
- SelfIssuedSamlTokenFactory.cs
- TableLayoutRowStyleCollection.cs
- AsyncPostBackErrorEventArgs.cs
- ObjectCloneHelper.cs
- Set.cs
- Native.cs
- ReflectPropertyDescriptor.cs
- DependencyPropertyAttribute.cs
- StyleCollection.cs
- SelectionItemProviderWrapper.cs
- mediaeventshelper.cs
- MdiWindowListStrip.cs
- ScrollChrome.cs
- MouseActionConverter.cs
- DownloadProgressEventArgs.cs
- StyleTypedPropertyAttribute.cs
- RuleSetBrowserDialog.cs
- AddressHeader.cs
- _HeaderInfoTable.cs
- SettingsSavedEventArgs.cs
- XPathNodeHelper.cs
- Renderer.cs
- _NegotiateClient.cs
- TimeSpanSecondsConverter.cs
- ToolStripItemClickedEventArgs.cs
- BulletDecorator.cs
- DataColumn.cs
- ListViewContainer.cs
- TemplateBuilder.cs
- ResourceSetExpression.cs
- CollectionChangeEventArgs.cs
- MDIClient.cs
- DataControlFieldHeaderCell.cs
- XmlSchemaExternal.cs
- HwndSourceParameters.cs
- webeventbuffer.cs
- DataGridViewImageColumn.cs
- XamlHttpHandlerFactory.cs
- EndpointConfigContainer.cs
- XPathPatternBuilder.cs
- UpdateTracker.cs