Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- WinFormsUtils.cs
- TraversalRequest.cs
- SendKeys.cs
- SynchronizationContext.cs
- SoapExtensionReflector.cs
- CryptoApi.cs
- TemplateManager.cs
- IxmlLineInfo.cs
- TransformerConfigurationWizardBase.cs
- PartialTrustVisibleAssembliesSection.cs
- XmlChildNodes.cs
- NativeCompoundFileAPIs.cs
- XmlEncodedRawTextWriter.cs
- UnescapedXmlDiagnosticData.cs
- InvalidProgramException.cs
- XmlWellformedWriter.cs
- PositiveTimeSpanValidatorAttribute.cs
- ProfessionalColorTable.cs
- ChangeInterceptorAttribute.cs
- NativeMethods.cs
- _UriTypeConverter.cs
- SQlBooleanStorage.cs
- _ListenerRequestStream.cs
- BaseAsyncResult.cs
- _ListenerAsyncResult.cs
- BuildResult.cs
- XmlWhitespace.cs
- Renderer.cs
- LabelAutomationPeer.cs
- InertiaTranslationBehavior.cs
- ISAPIRuntime.cs
- FunctionDetailsReader.cs
- ArithmeticException.cs
- PreviewControlDesigner.cs
- EntityTypeBase.cs
- BatchServiceHost.cs
- DataRelation.cs
- _ListenerResponseStream.cs
- ExpandCollapseProviderWrapper.cs
- ContainerParagraph.cs
- HttpHandlersInstallComponent.cs
- SortKey.cs
- DataGridViewButtonCell.cs
- EntityDataSourceDataSelectionPanel.cs
- BufferModeSettings.cs
- ZipIOLocalFileHeader.cs
- WindowsSecurityToken.cs
- ResXResourceSet.cs
- PathFigure.cs
- DependencyObjectPropertyDescriptor.cs
- C14NUtil.cs
- ProviderCollection.cs
- CngAlgorithmGroup.cs
- TransactionScope.cs
- SectionRecord.cs
- BamlVersionHeader.cs
- CommonRemoteMemoryBlock.cs
- SapiGrammar.cs
- OrderingExpression.cs
- CategoryGridEntry.cs
- OperandQuery.cs
- ProcessInfo.cs
- GenericsInstances.cs
- ProfileEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- CachedTypeface.cs
- OracleLob.cs
- X509RecipientCertificateServiceElement.cs
- CompositeTypefaceMetrics.cs
- ActivityPropertyReference.cs
- WindowsListView.cs
- ColorConverter.cs
- ConfigurationPermission.cs
- StructuredType.cs
- SweepDirectionValidation.cs
- DataAdapter.cs
- XPathNode.cs
- RuleCache.cs
- _UriTypeConverter.cs
- Rect.cs
- EntityDataSourceDesignerHelper.cs
- HierarchicalDataTemplate.cs
- XmlObjectSerializerReadContextComplexJson.cs
- WebPartHelpVerb.cs
- DataSourceDescriptorCollection.cs
- CacheEntry.cs
- CheckedListBox.cs
- HScrollProperties.cs
- SQlBooleanStorage.cs
- LexicalChunk.cs
- FieldNameLookup.cs
- metadatamappinghashervisitor.cs
- InputScopeAttribute.cs
- TextElementEditingBehaviorAttribute.cs
- TextTreeObjectNode.cs
- SqlGenericUtil.cs
- ControlCollection.cs
- XmlSerializationWriter.cs
- SqlBuilder.cs
- CompoundFileStreamReference.cs