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
- ThreadExceptionEvent.cs
- GridViewRowEventArgs.cs
- CollectionContainer.cs
- XmlILAnnotation.cs
- DbProviderManifest.cs
- BindingCompleteEventArgs.cs
- CaseStatement.cs
- contentDescriptor.cs
- UnsafeNativeMethods.cs
- EdmProperty.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PageHandlerFactory.cs
- LogLogRecordEnumerator.cs
- TimeoutHelper.cs
- LayoutEvent.cs
- ExceptionHandler.cs
- InfoCardServiceInstallComponent.cs
- IsolatedStorageException.cs
- BrushMappingModeValidation.cs
- TransformBlockRequest.cs
- ReverseInheritProperty.cs
- initElementDictionary.cs
- ServerProtocol.cs
- DeclaredTypeValidator.cs
- HttpListenerTimeoutManager.cs
- CodeEventReferenceExpression.cs
- BuildProviderCollection.cs
- ImportException.cs
- SpellCheck.cs
- InfiniteTimeSpanConverter.cs
- exports.cs
- SoapMessage.cs
- LabelInfo.cs
- CompilerInfo.cs
- HandlerFactoryCache.cs
- HotCommands.cs
- Relationship.cs
- PropertyGridCommands.cs
- PropertyIDSet.cs
- DataGridViewSelectedCellCollection.cs
- WeakEventTable.cs
- TypeSystemProvider.cs
- RemotingConfigParser.cs
- DataPointer.cs
- UnmanagedMemoryStream.cs
- SafeViewOfFileHandle.cs
- TextOnlyOutput.cs
- DataPagerCommandEventArgs.cs
- IndexExpression.cs
- ToolboxComponentsCreatedEventArgs.cs
- DateTimeValueSerializerContext.cs
- RenderingEventArgs.cs
- CancellationTokenRegistration.cs
- ConstructorBuilder.cs
- FtpRequestCacheValidator.cs
- FilteredReadOnlyMetadataCollection.cs
- FormsAuthentication.cs
- SoapWriter.cs
- MessageSecurityVersion.cs
- NetMsmqBindingCollectionElement.cs
- ManifestResourceInfo.cs
- SqlProcedureAttribute.cs
- TextParagraphCache.cs
- ObjectDataSourceDisposingEventArgs.cs
- DesignBinding.cs
- RenderTargetBitmap.cs
- Char.cs
- ObjectDataSourceFilteringEventArgs.cs
- PieceDirectory.cs
- Visual3D.cs
- ObjectConverter.cs
- ListManagerBindingsCollection.cs
- XmlSchemaComplexType.cs
- SqlNotificationRequest.cs
- NotSupportedException.cs
- Command.cs
- ItemsControlAutomationPeer.cs
- ZipArchive.cs
- CapabilitiesSection.cs
- Opcode.cs
- StateManagedCollection.cs
- HttpEncoder.cs
- DayRenderEvent.cs
- iisPickupDirectory.cs
- ReverseInheritProperty.cs
- ContextMenu.cs
- XmlWriterSettings.cs
- SqlServer2KCompatibilityCheck.cs
- GregorianCalendar.cs
- XmlDocumentSurrogate.cs
- XmlnsDictionary.cs
- XmlValueConverter.cs
- CodeNamespace.cs
- Configuration.cs
- SupportingTokenBindingElement.cs
- CurrentChangingEventArgs.cs
- PackUriHelper.cs
- EncodingInfo.cs
- TextCharacters.cs
- TrackingServices.cs