Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ReadOnlyCollectionBase.cs
- EncoderExceptionFallback.cs
- LeaseManager.cs
- XmlValueConverter.cs
- SafeEventLogWriteHandle.cs
- DetailsViewDeletedEventArgs.cs
- GenerateDerivedKeyRequest.cs
- CustomError.cs
- BasicExpressionVisitor.cs
- XNodeNavigator.cs
- safemediahandle.cs
- CompletedAsyncResult.cs
- StrokeCollection2.cs
- GeneralTransformCollection.cs
- TransactionScope.cs
- FormClosedEvent.cs
- TextModifier.cs
- CqlLexer.cs
- HttpCapabilitiesSectionHandler.cs
- InvalidProgramException.cs
- InvalidContentTypeException.cs
- ReliableInputConnection.cs
- MetadataCacheItem.cs
- ComponentRenameEvent.cs
- SocketCache.cs
- SocketElement.cs
- AttributeExtensions.cs
- SchemaCollectionCompiler.cs
- Accessible.cs
- XmlSchemaSimpleType.cs
- CollectionConverter.cs
- TypeBuilder.cs
- DataGridCellClipboardEventArgs.cs
- Vector3DValueSerializer.cs
- DefaultSection.cs
- UTF32Encoding.cs
- DebugView.cs
- InputManager.cs
- Visual.cs
- ContainerUtilities.cs
- ExpressionBinding.cs
- Deflater.cs
- XmlTextWriter.cs
- KerberosSecurityTokenParameters.cs
- Command.cs
- AssemblyUtil.cs
- SelectedDatesCollection.cs
- HttpRawResponse.cs
- ScopelessEnumAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- NTAccount.cs
- TcpStreams.cs
- XmlSortKeyAccumulator.cs
- FileDataSourceCache.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- AdornedElementPlaceholder.cs
- BaseCAMarshaler.cs
- MobileComponentEditorPage.cs
- Mappings.cs
- ExpressionsCollectionEditor.cs
- MetaModel.cs
- AsymmetricSignatureFormatter.cs
- LinkClickEvent.cs
- HttpFileCollectionWrapper.cs
- HostingPreferredMapPath.cs
- InstanceDataCollection.cs
- NamedPipeWorkerProcess.cs
- DoubleCollection.cs
- SchemaMapping.cs
- GeometryGroup.cs
- WebCategoryAttribute.cs
- HttpCacheParams.cs
- HttpApplicationStateWrapper.cs
- Attachment.cs
- SchemaImporterExtensionElementCollection.cs
- ColorPalette.cs
- MemberDescriptor.cs
- UIElementParaClient.cs
- LineServices.cs
- DrawingBrush.cs
- IntegerValidatorAttribute.cs
- PointAnimation.cs
- CharacterBuffer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ClrPerspective.cs
- IdentityValidationException.cs
- CounterCreationData.cs
- XmlSchemaAll.cs
- HMACSHA512.cs
- Listener.cs
- LookupNode.cs
- StrokeNodeOperations2.cs
- XmlChildNodes.cs
- ProvidePropertyAttribute.cs
- DataAccessException.cs
- SoapExtensionReflector.cs
- HandleCollector.cs
- TeredoHelper.cs
- OleDbRowUpdatingEvent.cs
- EdmMember.cs