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
- UIElement3D.cs
- TheQuery.cs
- StringCollection.cs
- ManualResetEvent.cs
- ThreadNeutralSemaphore.cs
- InfoCardClaimCollection.cs
- MethodToken.cs
- WebConfigurationManager.cs
- PreservationFileReader.cs
- Imaging.cs
- ResourceExpressionBuilder.cs
- Scheduler.cs
- HitTestParameters.cs
- PeerNearMe.cs
- Menu.cs
- WebDisplayNameAttribute.cs
- LinkArea.cs
- CopyNodeSetAction.cs
- XPathMultyIterator.cs
- SAPICategories.cs
- ColumnHeaderCollectionEditor.cs
- DataGridViewCellValueEventArgs.cs
- StatusBarPanel.cs
- TemplateParser.cs
- ObjectListFieldCollection.cs
- LayoutEvent.cs
- RoleService.cs
- ToolStripDropDownClosingEventArgs.cs
- baseaxisquery.cs
- XPathPatternBuilder.cs
- PerformanceCounter.cs
- BitmapEffect.cs
- WindowAutomationPeer.cs
- HScrollBar.cs
- TimersDescriptionAttribute.cs
- StorageEntitySetMapping.cs
- DBCommandBuilder.cs
- BuildProvider.cs
- StorageFunctionMapping.cs
- CustomErrorsSection.cs
- WebConfigurationFileMap.cs
- CultureInfoConverter.cs
- PrivateFontCollection.cs
- UIElementIsland.cs
- WinEventQueueItem.cs
- PropertyBuilder.cs
- Helper.cs
- XmlDataCollection.cs
- BitmapEffectInput.cs
- HierarchicalDataBoundControlAdapter.cs
- ICollection.cs
- DataBindingExpressionBuilder.cs
- TemplatedAdorner.cs
- SqlUserDefinedTypeAttribute.cs
- _TLSstream.cs
- PointLight.cs
- Utils.cs
- DataViewSetting.cs
- OracleBFile.cs
- AnnotationAdorner.cs
- StickyNoteAnnotations.cs
- ToolStripDropDown.cs
- AvTrace.cs
- SafeRsaProviderHandle.cs
- AppDomainEvidenceFactory.cs
- SqlDataReader.cs
- AutomationIdentifier.cs
- Transactions.cs
- FixedNode.cs
- DataList.cs
- IgnorePropertiesAttribute.cs
- DataGridDetailsPresenter.cs
- ApplicationHost.cs
- NavigationCommands.cs
- IndentedTextWriter.cs
- BlurBitmapEffect.cs
- CacheChildrenQuery.cs
- xmlglyphRunInfo.cs
- ValidatingReaderNodeData.cs
- StringAnimationUsingKeyFrames.cs
- PersonalizableTypeEntry.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- httpapplicationstate.cs
- SQLRoleProvider.cs
- DataStorage.cs
- BuilderPropertyEntry.cs
- ApplicationHost.cs
- _HTTPDateParse.cs
- InfoCardSchemas.cs
- XmlIncludeAttribute.cs
- MenuItemStyleCollection.cs
- SpellCheck.cs
- KeyedByTypeCollection.cs
- TextDecorations.cs
- NegotiateStream.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- QilExpression.cs
- HandleRef.cs
- Point3DConverter.cs
- TCPListener.cs