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
- ProxyWebPartConnectionCollection.cs
- DbConnectionPoolCounters.cs
- XmlSchemaAttributeGroup.cs
- PanelStyle.cs
- ZipFileInfo.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SystemIPAddressInformation.cs
- IODescriptionAttribute.cs
- PeerInvitationResponse.cs
- AppLevelCompilationSectionCache.cs
- ViewCellRelation.cs
- NonBatchDirectoryCompiler.cs
- Attachment.cs
- NetworkAddressChange.cs
- FileSystemInfo.cs
- Rect.cs
- ListViewDeletedEventArgs.cs
- BufferedGraphicsManager.cs
- SuspendDesigner.cs
- MessageFormatterConverter.cs
- CmsInterop.cs
- VisualTreeHelper.cs
- DeclaredTypeValidator.cs
- LateBoundChannelParameterCollection.cs
- AssemblyResourceLoader.cs
- EncryptedPackage.cs
- httpserverutility.cs
- TextStore.cs
- SerializationObjectManager.cs
- XpsS0ValidatingLoader.cs
- CodeTypeParameter.cs
- LifetimeServices.cs
- PropertyToken.cs
- TextPointerBase.cs
- Simplifier.cs
- CachedPathData.cs
- CollectionTypeElement.cs
- ConstructorNeedsTagAttribute.cs
- ClientConfigurationSystem.cs
- AnonymousIdentificationModule.cs
- WebPartVerbCollection.cs
- FontDifferentiator.cs
- ObjectConverter.cs
- RecognitionResult.cs
- SSmlParser.cs
- BooleanAnimationBase.cs
- XmlFormatWriterGenerator.cs
- ResourceAttributes.cs
- RedirectionProxy.cs
- SystemPens.cs
- PartialCachingControl.cs
- ResolveMatches11.cs
- SQLInt32Storage.cs
- WebPartCatalogAddVerb.cs
- SocketCache.cs
- TranslateTransform3D.cs
- TypeExtensionConverter.cs
- CompiledRegexRunnerFactory.cs
- PersonalizationStateInfo.cs
- ControlCachePolicy.cs
- XpsThumbnail.cs
- DataGridComboBoxColumn.cs
- PrintingPermissionAttribute.cs
- ProcessInfo.cs
- TraceRecords.cs
- OdbcConnectionPoolProviderInfo.cs
- AlignmentYValidation.cs
- HelpProvider.cs
- XmlSerializer.cs
- thaishape.cs
- DesignerVerbCollection.cs
- PreservationFileWriter.cs
- Viewport3DAutomationPeer.cs
- SchemaNames.cs
- ProviderConnectionPointCollection.cs
- MobilePage.cs
- FormsIdentity.cs
- InputManager.cs
- LabelExpression.cs
- PathSegmentCollection.cs
- linebase.cs
- AccessControlEntry.cs
- AttachedPropertyBrowsableAttribute.cs
- XmlLanguage.cs
- DataContractSerializerSection.cs
- FillRuleValidation.cs
- XsltContext.cs
- ThousandthOfEmRealPoints.cs
- _IPv6Address.cs
- InfoCardHelper.cs
- DateBoldEvent.cs
- ListViewItem.cs
- SerializerDescriptor.cs
- ManagementDateTime.cs
- Win32Exception.cs
- SqlCachedBuffer.cs
- NumericPagerField.cs
- FontWeightConverter.cs
- MappingException.cs
- TabletCollection.cs