Code:
/ DotNET / DotNET / 8.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
- CodeCompiler.cs
- ScrollContentPresenter.cs
- MasterPageBuildProvider.cs
- WorkItem.cs
- StrokeNodeData.cs
- TransactionScopeDesigner.cs
- BasicExpressionVisitor.cs
- DrawListViewSubItemEventArgs.cs
- ItemList.cs
- IdentityReference.cs
- StatusBarAutomationPeer.cs
- ResourcesChangeInfo.cs
- MenuItemBinding.cs
- TableParagraph.cs
- CreateUserWizardStep.cs
- XmlNodeComparer.cs
- ThicknessAnimation.cs
- MasterPage.cs
- ToolStripItemRenderEventArgs.cs
- FastEncoderWindow.cs
- MatrixCamera.cs
- TrackingConditionCollection.cs
- JoinTreeSlot.cs
- BaseResourcesBuildProvider.cs
- DispatcherExceptionFilterEventArgs.cs
- PrivateFontCollection.cs
- OverrideMode.cs
- MemberHolder.cs
- TypeUsage.cs
- ColorAnimation.cs
- DecimalConstantAttribute.cs
- BamlTreeNode.cs
- App.cs
- GraphicsContext.cs
- CodeArrayIndexerExpression.cs
- AdPostCacheSubstitution.cs
- DataGridItem.cs
- TablePattern.cs
- ServicePointManager.cs
- InfoCardRSACryptoProvider.cs
- WebServiceReceive.cs
- ELinqQueryState.cs
- ListViewPagedDataSource.cs
- SizeAnimation.cs
- DataGridViewTopLeftHeaderCell.cs
- XPathBinder.cs
- SerializationEventsCache.cs
- MonitorWrapper.cs
- CustomLineCap.cs
- SqlCaseSimplifier.cs
- ConsumerConnectionPoint.cs
- XPathArrayIterator.cs
- FixedTextSelectionProcessor.cs
- EmptyControlCollection.cs
- XPathNodeIterator.cs
- BypassElementCollection.cs
- InfoCardTrace.cs
- BoundPropertyEntry.cs
- ImageInfo.cs
- ImmutablePropertyDescriptorGridEntry.cs
- MutableAssemblyCacheEntry.cs
- AnnotationResourceCollection.cs
- TextRangeSerialization.cs
- RectangleGeometry.cs
- COM2TypeInfoProcessor.cs
- BooleanSwitch.cs
- ResponseStream.cs
- precedingquery.cs
- ObjectDisposedException.cs
- ProgressPage.cs
- RegexWorker.cs
- ADMembershipUser.cs
- SoapFormatExtensions.cs
- DataGridViewTextBoxColumn.cs
- PagedDataSource.cs
- ServiceKnownTypeAttribute.cs
- EndPoint.cs
- ToolStripContentPanel.cs
- ZipIOBlockManager.cs
- WsrmTraceRecord.cs
- FixedTextBuilder.cs
- DbConnectionPoolCounters.cs
- Menu.cs
- OdbcException.cs
- TransportOutputChannel.cs
- PageThemeBuildProvider.cs
- DesignTimeTemplateParser.cs
- UdpAnnouncementEndpoint.cs
- SupportingTokenDuplexChannel.cs
- SuspendDesigner.cs
- smtpconnection.cs
- InstanceDataCollection.cs
- BuildProviderAppliesToAttribute.cs
- MailHeaderInfo.cs
- ToolStripPanel.cs
- DSASignatureDeformatter.cs
- HttpResponseHeader.cs
- CommentAction.cs
- TableLayoutSettings.cs
- WebBrowserSiteBase.cs