Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DependencyObject.cs
- DocumentPageViewAutomationPeer.cs
- ServicePrincipalNameElement.cs
- BuildProviderAppliesToAttribute.cs
- PropertyDescriptorCollection.cs
- _BufferOffsetSize.cs
- IItemContainerGenerator.cs
- MemoryMappedFile.cs
- DataRowComparer.cs
- SyndicationPerson.cs
- SimpleRecyclingCache.cs
- FamilyMapCollection.cs
- EventManager.cs
- MimePart.cs
- Matrix3D.cs
- ComplexTypeEmitter.cs
- XmlCodeExporter.cs
- _DomainName.cs
- NodeLabelEditEvent.cs
- TreeNodeConverter.cs
- XmlUrlResolver.cs
- IsolatedStorageFileStream.cs
- TaskFormBase.cs
- KeyValueSerializer.cs
- Context.cs
- ZipIOExtraField.cs
- Rfc2898DeriveBytes.cs
- XsdValidatingReader.cs
- CommonObjectSecurity.cs
- XmlQuerySequence.cs
- HtmlShim.cs
- OverflowException.cs
- PageThemeCodeDomTreeGenerator.cs
- ReceiveSecurityHeaderElementManager.cs
- MatrixTransform3D.cs
- BinaryObjectInfo.cs
- GridViewSelectEventArgs.cs
- DockPatternIdentifiers.cs
- DataGridItem.cs
- DirectionalLight.cs
- CompositeKey.cs
- QualifierSet.cs
- SystemParameters.cs
- ClientType.cs
- ContractValidationHelper.cs
- DataGridViewRow.cs
- DisplayMemberTemplateSelector.cs
- BindingMemberInfo.cs
- VectorCollectionConverter.cs
- RijndaelManaged.cs
- SizeAnimationUsingKeyFrames.cs
- OleTxTransaction.cs
- ListControlStringCollectionEditor.cs
- SmiRecordBuffer.cs
- FacetEnabledSchemaElement.cs
- XpsS0ValidatingLoader.cs
- ReadOnlyPropertyMetadata.cs
- PageOrientation.cs
- Bookmark.cs
- ProxyHwnd.cs
- HttpHeaderCollection.cs
- ItemList.cs
- TypeDescriptorFilterService.cs
- PenThreadWorker.cs
- RunWorkerCompletedEventArgs.cs
- HandleRef.cs
- WebServiceResponse.cs
- BevelBitmapEffect.cs
- AndCondition.cs
- NominalTypeEliminator.cs
- ComPersistableTypeElementCollection.cs
- DocumentReference.cs
- OptimisticConcurrencyException.cs
- OutputBuffer.cs
- mediapermission.cs
- ReachPageContentSerializer.cs
- ContourSegment.cs
- SplayTreeNode.cs
- HtmlEncodedRawTextWriter.cs
- EndpointDesigner.cs
- PenThreadPool.cs
- ToolStripContainerDesigner.cs
- EndPoint.cs
- ComboBoxDesigner.cs
- UnionExpr.cs
- TiffBitmapDecoder.cs
- SqlTypeConverter.cs
- FontSourceCollection.cs
- InstalledVoice.cs
- Lock.cs
- OdbcException.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- StringDictionary.cs
- Html32TextWriter.cs
- AuthenticationConfig.cs
- ValidatorUtils.cs
- WpfWebRequestHelper.cs
- ImageIndexConverter.cs
- GroupLabel.cs
- ReferenceSchema.cs