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 / 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); } } } // 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.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); } } } // 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
- EndpointInstanceProvider.cs
- PersonalizableTypeEntry.cs
- DirtyTextRange.cs
- FontNamesConverter.cs
- TagPrefixInfo.cs
- TriState.cs
- DesignUtil.cs
- EntityClientCacheKey.cs
- QueryExtender.cs
- DataGridTableCollection.cs
- SubclassTypeValidatorAttribute.cs
- PageContentAsyncResult.cs
- HTTPNotFoundHandler.cs
- COAUTHINFO.cs
- Encoder.cs
- AdornerHitTestResult.cs
- Bitmap.cs
- AppDomainFactory.cs
- DataGridToolTip.cs
- DependencyObjectType.cs
- ToggleButtonAutomationPeer.cs
- DeviceFiltersSection.cs
- EdgeProfileValidation.cs
- UidManager.cs
- Triangle.cs
- ItemsControl.cs
- SID.cs
- IDataContractSurrogate.cs
- StylusDownEventArgs.cs
- Pts.cs
- RuleAction.cs
- ErrorFormatter.cs
- ProcessRequestArgs.cs
- TdsParser.cs
- XmlChoiceIdentifierAttribute.cs
- DataObjectMethodAttribute.cs
- SuppressMessageAttribute.cs
- DesignOnlyAttribute.cs
- HtmlTableCellCollection.cs
- PropertyToken.cs
- WebPartCatalogAddVerb.cs
- ArrayElementGridEntry.cs
- ConfigurationManagerHelperFactory.cs
- HiddenFieldPageStatePersister.cs
- DependencyPropertyValueSerializer.cs
- App.cs
- ImageBrush.cs
- TargetControlTypeCache.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- UserPrincipalNameElement.cs
- ClusterUtils.cs
- Pair.cs
- SqlWebEventProvider.cs
- PrintController.cs
- DescendantQuery.cs
- InputLanguageCollection.cs
- Error.cs
- SafeRightsManagementQueryHandle.cs
- StringAnimationBase.cs
- NoClickablePointException.cs
- XmlHelper.cs
- WindowHideOrCloseTracker.cs
- SimpleHandlerFactory.cs
- UserPersonalizationStateInfo.cs
- SecurityState.cs
- CryptoApi.cs
- WinInetCache.cs
- DispatcherFrame.cs
- StrokeIntersection.cs
- GenericIdentity.cs
- SelectionRangeConverter.cs
- SelectedCellsCollection.cs
- NameNode.cs
- OdbcException.cs
- ScrollItemProviderWrapper.cs
- HttpRequestWrapper.cs
- NoPersistScope.cs
- WebColorConverter.cs
- SyndicationContent.cs
- AdapterSwitches.cs
- Button.cs
- TableLayoutStyleCollection.cs
- InstanceDescriptor.cs
- BackStopAuthenticationModule.cs
- DataControlButton.cs
- OdbcRowUpdatingEvent.cs
- TableRow.cs
- PopupRootAutomationPeer.cs
- FontNameConverter.cs
- PasswordPropertyTextAttribute.cs
- StreamingContext.cs
- SecurityTokenSerializer.cs
- ServiceParser.cs
- StringUtil.cs
- UserControl.cs
- EmptyQuery.cs
- Duration.cs
- IList.cs
- EnumMember.cs
- ScrollChrome.cs