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
- TriggerCollection.cs
- EventDescriptor.cs
- SearchForVirtualItemEventArgs.cs
- Attributes.cs
- ResourcesBuildProvider.cs
- PagePropertiesChangingEventArgs.cs
- DependencyPropertyChangedEventArgs.cs
- EntityProxyFactory.cs
- ConfigXmlSignificantWhitespace.cs
- DBSchemaTable.cs
- UDPClient.cs
- Timer.cs
- InvalidCastException.cs
- Thickness.cs
- CookieHandler.cs
- IOThreadTimer.cs
- FileCodeGroup.cs
- DisplayNameAttribute.cs
- Converter.cs
- ViewStateException.cs
- CustomValidator.cs
- DbBuffer.cs
- TextEndOfParagraph.cs
- LinqDataSourceHelper.cs
- RegexBoyerMoore.cs
- FontCollection.cs
- TableLayoutPanelCellPosition.cs
- FlowDocumentView.cs
- MemberPath.cs
- Vars.cs
- ColorConvertedBitmap.cs
- MsmqIntegrationBindingElement.cs
- SafeFileHandle.cs
- PropertyTabChangedEvent.cs
- MemberPath.cs
- AuthenticationServiceManager.cs
- PictureBox.cs
- PublishLicense.cs
- HuffmanTree.cs
- ViewGenerator.cs
- DbConnectionFactory.cs
- WebPartConnectionsCancelVerb.cs
- ResourceType.cs
- wgx_commands.cs
- ScrollBarRenderer.cs
- PostBackOptions.cs
- GenericEnumerator.cs
- CodeEventReferenceExpression.cs
- SortedList.cs
- RetriableClipboard.cs
- FrameworkContentElement.cs
- DropDownButton.cs
- regiisutil.cs
- DataGridTablesFactory.cs
- FrameworkContentElementAutomationPeer.cs
- EntityEntry.cs
- Authorization.cs
- ConstraintConverter.cs
- CommonDialog.cs
- NameValueConfigurationElement.cs
- AdornedElementPlaceholder.cs
- TrackingMemoryStream.cs
- DesignerLoader.cs
- HyperLinkField.cs
- PointCollectionConverter.cs
- SystemColors.cs
- ThreadExceptionEvent.cs
- FieldNameLookup.cs
- SelectionWordBreaker.cs
- MessageFilterTable.cs
- AutoSizeToolBoxItem.cs
- MouseActionConverter.cs
- PropertyAccessVisitor.cs
- CorrelationTokenInvalidatedHandler.cs
- RegexInterpreter.cs
- TextElementCollectionHelper.cs
- GraphicsPath.cs
- TrackingMemoryStream.cs
- ZoneButton.cs
- SqlUnionizer.cs
- DecoderFallback.cs
- AnimationStorage.cs
- ProcessManager.cs
- MobileUserControlDesigner.cs
- SchemaTableOptionalColumn.cs
- ExternalDataExchangeClient.cs
- ResourceAssociationSet.cs
- FieldNameLookup.cs
- XPathNodeList.cs
- ControlSerializer.cs
- KeyMatchBuilder.cs
- PictureBox.cs
- ScrollProviderWrapper.cs
- JsonObjectDataContract.cs
- DrawingBrush.cs
- BaseTransportHeaders.cs
- ContextStaticAttribute.cs
- MexHttpBindingCollectionElement.cs
- _RequestCacheProtocol.cs
- CachedResourceDictionaryExtension.cs