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
- ObjectDataSourceMethodEventArgs.cs
- TdsValueSetter.cs
- Parser.cs
- GeometryCollection.cs
- ConfigPathUtility.cs
- ParseChildrenAsPropertiesAttribute.cs
- Internal.cs
- TreeNode.cs
- StylusEditingBehavior.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- UnauthorizedWebPart.cs
- DoubleStorage.cs
- SiteMapDesignerDataSourceView.cs
- Stream.cs
- ProgressiveCrcCalculatingStream.cs
- XmlSchemaType.cs
- XmlMemberMapping.cs
- SymmetricAlgorithm.cs
- DiscoveryClientReferences.cs
- ListBoxItemAutomationPeer.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- AsymmetricSecurityProtocolFactory.cs
- MouseActionValueSerializer.cs
- ArgIterator.cs
- SetUserPreferenceRequest.cs
- MetadataArtifactLoaderResource.cs
- ObjectDataSource.cs
- SessionStateUtil.cs
- Vector.cs
- CodeSubDirectoriesCollection.cs
- ContentDefinition.cs
- EntityDataSourceView.cs
- ProcessHostConfigUtils.cs
- SystemEvents.cs
- XmlDataLoader.cs
- RadioButton.cs
- MissingManifestResourceException.cs
- ConnectionConsumerAttribute.cs
- Error.cs
- LazyTextWriterCreator.cs
- TextDpi.cs
- Point3DConverter.cs
- HebrewCalendar.cs
- AuthenticationModulesSection.cs
- GraphicsContext.cs
- shaperfactoryquerycacheentry.cs
- _AutoWebProxyScriptWrapper.cs
- MimeParameterWriter.cs
- RotateTransform3D.cs
- UserControlBuildProvider.cs
- PriorityBindingExpression.cs
- Visual.cs
- ReferentialConstraint.cs
- DelayDesigner.cs
- RegexGroupCollection.cs
- WindowsFormsSynchronizationContext.cs
- WindowsStatic.cs
- ArgumentOutOfRangeException.cs
- ThousandthOfEmRealDoubles.cs
- JsonReaderWriterFactory.cs
- SqlDataSourceView.cs
- ContainerUtilities.cs
- BatchStream.cs
- Brush.cs
- XmlWrappingReader.cs
- ZoneButton.cs
- GenericTextProperties.cs
- MSG.cs
- RetrieveVirtualItemEventArgs.cs
- coordinatorfactory.cs
- MissingMemberException.cs
- ImagingCache.cs
- PingReply.cs
- ConnectionStringEditor.cs
- ExpressionVisitor.cs
- Shape.cs
- ValidationRuleCollection.cs
- AnnotationResourceCollection.cs
- ResourcePermissionBaseEntry.cs
- XmlAttributeProperties.cs
- StructuralCache.cs
- AssertHelper.cs
- RouteUrlExpressionBuilder.cs
- EventLogLink.cs
- BitVec.cs
- CatalogPart.cs
- StructuralType.cs
- RoleServiceManager.cs
- WorkflowDesignerMessageFilter.cs
- TypedTableBaseExtensions.cs
- XsdBuilder.cs
- WindowsButton.cs
- TextTreeTextElementNode.cs
- ControlDesignerState.cs
- PeerObject.cs
- DuplexChannelFactory.cs
- EventLogRecord.cs
- PasswordTextNavigator.cs
- SystemPens.cs
- GACIdentityPermission.cs