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
- AssemblyContextControlItem.cs
- HttpWebRequest.cs
- DataGridViewSelectedColumnCollection.cs
- AutomationProperties.cs
- SkewTransform.cs
- XmlTextEncoder.cs
- SqlProcedureAttribute.cs
- PrintingPermissionAttribute.cs
- HtmlLink.cs
- WindowAutomationPeer.cs
- SHA384Cng.cs
- TextBounds.cs
- DesignerOptionService.cs
- FontCacheUtil.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ParenthesizePropertyNameAttribute.cs
- PeerEndPoint.cs
- CompositionTarget.cs
- ProxyManager.cs
- GradientStopCollection.cs
- RenderingBiasValidation.cs
- ControlBuilderAttribute.cs
- BrowserTree.cs
- XPathMessageFilterElementCollection.cs
- OleServicesContext.cs
- Vector.cs
- CodeTypeMember.cs
- BitmapPalette.cs
- CompiledScopeCriteria.cs
- FieldInfo.cs
- XmlSchemaAnnotated.cs
- __ConsoleStream.cs
- EventManager.cs
- SectionVisual.cs
- EventLogPermissionEntryCollection.cs
- ZeroOpNode.cs
- ClosureBinding.cs
- TimeSpanSecondsConverter.cs
- NGCPageContentSerializerAsync.cs
- ListViewDataItem.cs
- TraceHelpers.cs
- DataBindingExpressionBuilder.cs
- VectorValueSerializer.cs
- PropagatorResult.cs
- ConfigDefinitionUpdates.cs
- DrawingContextDrawingContextWalker.cs
- XMLDiffLoader.cs
- SqlTypeConverter.cs
- StatusBarAutomationPeer.cs
- GenericTypeParameterBuilder.cs
- FormViewCommandEventArgs.cs
- XmlSchemaImport.cs
- RemotingSurrogateSelector.cs
- PageRequestManager.cs
- ScrollChrome.cs
- SafeCertificateContext.cs
- CodeBlockBuilder.cs
- EntityDataSourceState.cs
- DockPattern.cs
- CreateUserWizardStep.cs
- ConstraintManager.cs
- OleDbReferenceCollection.cs
- ListBoxItemAutomationPeer.cs
- EmptyReadOnlyDictionaryInternal.cs
- SHA384.cs
- PropertyDescriptorComparer.cs
- SoundPlayer.cs
- UITypeEditor.cs
- LogStore.cs
- SpeechEvent.cs
- XmlNotation.cs
- TreePrinter.cs
- NativeStructs.cs
- RemotingConfigParser.cs
- RemotingSurrogateSelector.cs
- QilInvokeEarlyBound.cs
- EdmTypeAttribute.cs
- RequestUriProcessor.cs
- StrongName.cs
- FixedSOMPage.cs
- ToolStripButton.cs
- Char.cs
- StreamInfo.cs
- QueryStringParameter.cs
- Privilege.cs
- TouchEventArgs.cs
- DataControlExtensions.cs
- ComboBoxItem.cs
- ExpressionList.cs
- EventListener.cs
- SqlUserDefinedTypeAttribute.cs
- Rotation3DKeyFrameCollection.cs
- NameObjectCollectionBase.cs
- TiffBitmapEncoder.cs
- SuppressMergeCheckAttribute.cs
- TextChange.cs
- SystemIcmpV4Statistics.cs
- ObjectNavigationPropertyMapping.cs
- ScopelessEnumAttribute.cs
- XsltCompileContext.cs