Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / GatewayIPAddressInformationCollection.cs / 1305376 / GatewayIPAddressInformationCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class GatewayIPAddressInformationCollection :ICollection{ Collection addresses = new Collection (); protected internal GatewayIPAddressInformationCollection(){ } /// public virtual void CopyTo(GatewayIPAddressInformation[] array, int offset) { addresses.CopyTo(array,offset); } /// public virtual int Count { get { return addresses.Count; } } public virtual bool IsReadOnly { get { return true; } } public virtual GatewayIPAddressInformation this[int index] { get{ return (GatewayIPAddressInformation)addresses[index]; } } /// public virtual void Add(GatewayIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(GatewayIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(GatewayIPAddressInformation address) { return addresses.Contains(address); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } /// public virtual bool Remove(GatewayIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } /// public virtual void Clear() { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class GatewayIPAddressInformationCollection :ICollection { Collection addresses = new Collection (); protected internal GatewayIPAddressInformationCollection(){ } /// public virtual void CopyTo(GatewayIPAddressInformation[] array, int offset) { addresses.CopyTo(array,offset); } /// public virtual int Count { get { return addresses.Count; } } public virtual bool IsReadOnly { get { return true; } } public virtual GatewayIPAddressInformation this[int index] { get{ return (GatewayIPAddressInformation)addresses[index]; } } /// public virtual void Add(GatewayIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(GatewayIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(GatewayIPAddressInformation address) { return addresses.Contains(address); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } /// public virtual bool Remove(GatewayIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } /// public virtual void Clear() { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KeyGesture.cs
- HostingEnvironmentWrapper.cs
- BadImageFormatException.cs
- Item.cs
- Array.cs
- XmlArrayAttribute.cs
- Roles.cs
- LazyTextWriterCreator.cs
- UnionCodeGroup.cs
- ControlCollection.cs
- StringWriter.cs
- TextAdaptor.cs
- UTF32Encoding.cs
- SaveLedgerEntryRequest.cs
- DataTableMappingCollection.cs
- HtmlLiteralTextAdapter.cs
- FontFamilyIdentifier.cs
- httpstaticobjectscollection.cs
- SqlUserDefinedAggregateAttribute.cs
- DrawingBrush.cs
- InputBuffer.cs
- Query.cs
- SelectedGridItemChangedEvent.cs
- GlyphShapingProperties.cs
- TableItemStyle.cs
- EncoderParameters.cs
- HtmlInputHidden.cs
- GridPattern.cs
- ContentOperations.cs
- EnumValidator.cs
- InProcStateClientManager.cs
- ChannelServices.cs
- NullableDecimalAverageAggregationOperator.cs
- IPAddressCollection.cs
- BitmapImage.cs
- SiteMapNode.cs
- XPathSelfQuery.cs
- ChannelParameterCollection.cs
- RijndaelManaged.cs
- EntitySqlException.cs
- MainMenu.cs
- DynamicILGenerator.cs
- sitestring.cs
- MTConfigUtil.cs
- PersistenceTypeAttribute.cs
- InheritanceContextHelper.cs
- AppLevelCompilationSectionCache.cs
- EmptyQuery.cs
- NCryptSafeHandles.cs
- CommandConverter.cs
- WebPartEditVerb.cs
- WebPartConnectionsConnectVerb.cs
- MatrixCamera.cs
- PrintDialogDesigner.cs
- PackageRelationshipCollection.cs
- Exceptions.cs
- SqlUserDefinedTypeAttribute.cs
- ProgressBar.cs
- DelayedRegex.cs
- ArraySortHelper.cs
- WindowsHyperlink.cs
- ShapingWorkspace.cs
- CmsUtils.cs
- Slider.cs
- CategoryGridEntry.cs
- XamlFilter.cs
- SessionViewState.cs
- XmlSchemaCompilationSettings.cs
- MatrixIndependentAnimationStorage.cs
- ToolStripMenuItem.cs
- Model3DGroup.cs
- ErrorHandler.cs
- CoreSwitches.cs
- SafePEFileHandle.cs
- QuaternionAnimation.cs
- EntitySqlQueryState.cs
- GridViewSelectEventArgs.cs
- XPathDescendantIterator.cs
- Pipe.cs
- SystemMulticastIPAddressInformation.cs
- hwndwrapper.cs
- XsdDuration.cs
- CredentialCache.cs
- NetworkCredential.cs
- DisposableCollectionWrapper.cs
- HttpEncoderUtility.cs
- ToolTip.cs
- TransformCollection.cs
- GridEntry.cs
- RightsManagementSuppressedStream.cs
- PublisherMembershipCondition.cs
- StreamInfo.cs
- X509Certificate.cs
- CodeBlockBuilder.cs
- OdbcConnectionStringbuilder.cs
- EventSourceCreationData.cs
- CaseInsensitiveComparer.cs
- ServiceContractGenerationContext.cs
- ServicePrincipalNameElement.cs
- ImageField.cs