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
- translator.cs
- ListViewCommandEventArgs.cs
- SchemaImporterExtensionElement.cs
- DropDownList.cs
- PrintPreviewControl.cs
- InternalRelationshipCollection.cs
- IdentityManager.cs
- Schedule.cs
- DataSourceControlBuilder.cs
- DebuggerAttributes.cs
- GridSplitterAutomationPeer.cs
- CustomAttributeSerializer.cs
- SnapshotChangeTrackingStrategy.cs
- ReturnValue.cs
- EpmTargetPathSegment.cs
- CommandHelpers.cs
- HttpListenerContext.cs
- DataGridViewLayoutData.cs
- hwndwrapper.cs
- StorageComplexPropertyMapping.cs
- FilterUserControlBase.cs
- InvalidComObjectException.cs
- UnmanagedHandle.cs
- BuilderPropertyEntry.cs
- PrintPreviewControl.cs
- LineSegment.cs
- WsiProfilesElement.cs
- XmlPreloadedResolver.cs
- ClientRoleProvider.cs
- XmlSerializerAssemblyAttribute.cs
- IssuedTokenClientElement.cs
- NavigationProperty.cs
- SettingsAttributes.cs
- ObjectRef.cs
- ValueConversionAttribute.cs
- SHA256Cng.cs
- DbConvert.cs
- CompilerLocalReference.cs
- BaseComponentEditor.cs
- PageCatalogPart.cs
- QueryOperationResponseOfT.cs
- ExpressionBuilder.cs
- AdvancedBindingPropertyDescriptor.cs
- PeerDuplexChannel.cs
- MenuScrollingVisibilityConverter.cs
- XmlSchemaGroup.cs
- LogExtent.cs
- TextSyndicationContent.cs
- PointHitTestResult.cs
- WebPartExportVerb.cs
- Cell.cs
- MenuTracker.cs
- DataGridViewDataErrorEventArgs.cs
- XPathScanner.cs
- AttachInfo.cs
- SystemIPGlobalStatistics.cs
- SamlDoNotCacheCondition.cs
- SqlCacheDependencySection.cs
- StateMachineTimers.cs
- ClientConfigPaths.cs
- RawStylusInput.cs
- ListBox.cs
- ImageSource.cs
- DocumentApplication.cs
- contentDescriptor.cs
- _ShellExpression.cs
- WindowsListViewScroll.cs
- Timer.cs
- WebServiceParameterData.cs
- QueryStringParameter.cs
- StackBuilderSink.cs
- AuthorizationSection.cs
- WebBrowserPermission.cs
- DataGridViewSelectedCellCollection.cs
- BulletedListEventArgs.cs
- ELinqQueryState.cs
- EventWaitHandleSecurity.cs
- HwndSourceParameters.cs
- PauseStoryboard.cs
- SafeFileMappingHandle.cs
- InputMethod.cs
- RenamedEventArgs.cs
- BaseCollection.cs
- Internal.cs
- BrowserCapabilitiesFactoryBase.cs
- CannotUnloadAppDomainException.cs
- BlockExpression.cs
- ViewKeyConstraint.cs
- AuthenticationException.cs
- Timer.cs
- SafeArchiveContext.cs
- GetPageNumberCompletedEventArgs.cs
- DataGridViewCheckBoxColumn.cs
- WebPartVerbCollection.cs
- StorageSetMapping.cs
- ToolStripItemImageRenderEventArgs.cs
- DoubleKeyFrameCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- ColorKeyFrameCollection.cs
- PermissionSet.cs