Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / EmbeddedMailObjectsCollection.cs / 1 / EmbeddedMailObjectsCollection.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.IO;
using System.Drawing.Design;
using System.Web;
[Editor("System.Web.UI.Design.WebControls.EmbeddedMailObjectCollectionEditor, " + AssemblyRef.SystemDesign, typeof(UITypeEditor))]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
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);
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConstraintStruct.cs
- DigestComparer.cs
- OdbcConnectionStringbuilder.cs
- ToolStripContainerActionList.cs
- PingReply.cs
- HttpResponseBase.cs
- IssuanceTokenProviderBase.cs
- WebBrowserNavigatingEventHandler.cs
- ScriptServiceAttribute.cs
- DoubleCollectionValueSerializer.cs
- DataSourceControlBuilder.cs
- PassportAuthenticationEventArgs.cs
- ObjectManager.cs
- DiagnosticsElement.cs
- QueueProcessor.cs
- CommandEventArgs.cs
- Range.cs
- DesignerInterfaces.cs
- COM2PictureConverter.cs
- DbConnectionStringCommon.cs
- StringValidatorAttribute.cs
- PropertyIDSet.cs
- InternalMappingException.cs
- ResourceContainer.cs
- TrackPoint.cs
- httpserverutility.cs
- XmlTextWriter.cs
- RoutedEvent.cs
- FormatterConverter.cs
- OperationCanceledException.cs
- XmlTextWriter.cs
- ChildDocumentBlock.cs
- DoubleLinkListEnumerator.cs
- IndexedEnumerable.cs
- DataProtection.cs
- KerberosSecurityTokenAuthenticator.cs
- RegexTree.cs
- CollectionConverter.cs
- ContextInformation.cs
- TableRowGroup.cs
- VirtualizingPanel.cs
- EditingMode.cs
- MultipleCopiesCollection.cs
- TextBoxBase.cs
- WebRequestModuleElement.cs
- DrawListViewColumnHeaderEventArgs.cs
- ValidationError.cs
- XslTransform.cs
- SvcMapFile.cs
- FontFamily.cs
- SchemaElement.cs
- ValueUnavailableException.cs
- TrimSurroundingWhitespaceAttribute.cs
- SpinLock.cs
- ChannelServices.cs
- ThreadTrace.cs
- SqlRowUpdatingEvent.cs
- AppDomainFactory.cs
- SliderAutomationPeer.cs
- IItemContainerGenerator.cs
- TextMetrics.cs
- CleanUpVirtualizedItemEventArgs.cs
- IssuanceLicense.cs
- GlyphInfoList.cs
- ResourceIDHelper.cs
- _HeaderInfo.cs
- PointCollection.cs
- InvalidComObjectException.cs
- MenuCommands.cs
- SelectionGlyphBase.cs
- DataServiceHost.cs
- DataTableMappingCollection.cs
- SystemIcmpV4Statistics.cs
- GestureRecognizer.cs
- PeerNameRegistration.cs
- PhysicalOps.cs
- SingleStorage.cs
- RelatedCurrencyManager.cs
- CommandValueSerializer.cs
- ContextBase.cs
- SerTrace.cs
- DeriveBytes.cs
- ActionMessageFilter.cs
- loginstatus.cs
- RegexRunner.cs
- XmlSchemaAnnotation.cs
- InternalDispatchObject.cs
- ContextCorrelationInitializer.cs
- RequestCache.cs
- TypeResolvingOptions.cs
- ParallelEnumerableWrapper.cs
- ThreadSafeList.cs
- ImageClickEventArgs.cs
- SingleResultAttribute.cs
- AsymmetricSecurityProtocol.cs
- AssertSection.cs
- TransactionsSectionGroup.cs
- DataReceivedEventArgs.cs
- HtmlButton.cs
- MobileComponentEditorPage.cs