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
- SessionStateItemCollection.cs
- CodeRemoveEventStatement.cs
- HttpHandlerActionCollection.cs
- _UncName.cs
- Rect.cs
- Label.cs
- mediaeventshelper.cs
- AsmxEndpointPickerExtension.cs
- ToolboxBitmapAttribute.cs
- ZipQueryOperator.cs
- PathSegmentCollection.cs
- JapaneseCalendar.cs
- SqlDataSource.cs
- BufferedStream.cs
- PublishLicense.cs
- PageBuildProvider.cs
- ListParaClient.cs
- TableColumnCollectionInternal.cs
- HttpResponseInternalWrapper.cs
- DaylightTime.cs
- IteratorDescriptor.cs
- CodeDOMProvider.cs
- SurrogateSelector.cs
- PersianCalendar.cs
- CollectionViewGroupRoot.cs
- AssemblyResourceLoader.cs
- SynchronizedDispatch.cs
- TimeoutValidationAttribute.cs
- OlePropertyStructs.cs
- ForeignKeyFactory.cs
- CaseStatementSlot.cs
- MarshalByRefObject.cs
- TableStyle.cs
- EventSource.cs
- CompModSwitches.cs
- ResizeBehavior.cs
- PatternMatcher.cs
- DetailsViewPagerRow.cs
- MethodRental.cs
- UIElementPropertyUndoUnit.cs
- LineServicesRun.cs
- FilteredAttributeCollection.cs
- ConfigXmlText.cs
- UInt16Converter.cs
- CodeObjectCreateExpression.cs
- MonthChangedEventArgs.cs
- SmiEventStream.cs
- RTLAwareMessageBox.cs
- ProcessProtocolHandler.cs
- IOException.cs
- _BufferOffsetSize.cs
- SinglePhaseEnlistment.cs
- EntityContainerAssociationSetEnd.cs
- DeadCharTextComposition.cs
- DescendantBaseQuery.cs
- CorrelationTokenTypeConvertor.cs
- WpfWebRequestHelper.cs
- WorkflowMarkupElementEventArgs.cs
- CompilerResults.cs
- IdentifierElement.cs
- BackgroundWorker.cs
- Pointer.cs
- COM2ExtendedTypeConverter.cs
- InteropBitmapSource.cs
- CodeEventReferenceExpression.cs
- TranslateTransform3D.cs
- LogRestartAreaEnumerator.cs
- MessageSecurityTokenVersion.cs
- XmlConverter.cs
- QilGeneratorEnv.cs
- XPathParser.cs
- DBDataPermission.cs
- ObjectDataSourceSelectingEventArgs.cs
- RelationshipEnd.cs
- XmlUtil.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CodeIdentifiers.cs
- RotateTransform3D.cs
- RuleSettingsCollection.cs
- _AutoWebProxyScriptWrapper.cs
- ObjectSelectorEditor.cs
- FormView.cs
- MultiSelectRootGridEntry.cs
- SqlOuterApplyReducer.cs
- PowerStatus.cs
- SerializableAuthorizationContext.cs
- TextParagraphCache.cs
- HostingEnvironment.cs
- Rect.cs
- Journaling.cs
- ConstantCheck.cs
- BindingValueChangedEventArgs.cs
- OdbcConnectionString.cs
- HostingPreferredMapPath.cs
- BufferBuilder.cs
- DesignParameter.cs
- TextEditorCharacters.cs
- SoapExtensionTypeElement.cs
- SamlSecurityToken.cs
- ErrorCodes.cs