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
- CacheChildrenQuery.cs
- TextTrailingWordEllipsis.cs
- _AuthenticationState.cs
- WebPartActionVerb.cs
- Compiler.cs
- AxHost.cs
- WasAdminWrapper.cs
- BaseConfigurationRecord.cs
- HeaderCollection.cs
- ResourceAssociationTypeEnd.cs
- HtmlWindowCollection.cs
- ListViewUpdatedEventArgs.cs
- SchemaInfo.cs
- Win32KeyboardDevice.cs
- HttpCookiesSection.cs
- Console.cs
- DataServiceQuery.cs
- DependencyPropertyConverter.cs
- GeneralTransform3D.cs
- SQLBytesStorage.cs
- PlatformCulture.cs
- ArgumentOutOfRangeException.cs
- MarginsConverter.cs
- ContextMenu.cs
- HttpApplication.cs
- CapabilitiesUse.cs
- ListSourceHelper.cs
- TimeEnumHelper.cs
- SqlDataSourceView.cs
- WorkflowElementDialogWindow.xaml.cs
- RadioButtonRenderer.cs
- CorePropertiesFilter.cs
- DataListItem.cs
- TerminatorSinks.cs
- OutputCacheModule.cs
- StrongNamePublicKeyBlob.cs
- TriggerAction.cs
- PolicyUnit.cs
- _UriTypeConverter.cs
- XmlAttributes.cs
- GestureRecognizer.cs
- TokenBasedSet.cs
- TreeNodeCollection.cs
- TreeNodeStyle.cs
- SecurityException.cs
- LinkedResourceCollection.cs
- TableLayout.cs
- SimpleHandlerFactory.cs
- PrintController.cs
- StreamHelper.cs
- ColumnTypeConverter.cs
- SecurityElement.cs
- TextViewSelectionProcessor.cs
- Themes.cs
- SharedUtils.cs
- Int64AnimationBase.cs
- Matrix3D.cs
- BuiltInPermissionSets.cs
- DynamicResourceExtensionConverter.cs
- ExceptionUtil.cs
- WindowsToolbarAsMenu.cs
- ScriptingSectionGroup.cs
- Section.cs
- SemanticValue.cs
- DES.cs
- ToolStripDropDownItem.cs
- ToolBarButtonClickEvent.cs
- FlowDocumentPage.cs
- ObservableDictionary.cs
- PolicyLevel.cs
- Models.cs
- Parameter.cs
- SolidColorBrush.cs
- TextServicesCompartment.cs
- RoutedEventHandlerInfo.cs
- WebExceptionStatus.cs
- StrokeDescriptor.cs
- Point3DValueSerializer.cs
- ColorConvertedBitmap.cs
- XmlSerializerFactory.cs
- ReflectionTypeLoadException.cs
- WebPartDisplayModeEventArgs.cs
- StructuredProperty.cs
- MetadataHelper.cs
- SmiGettersStream.cs
- DataViewManager.cs
- QueryOptionExpression.cs
- AttributedMetaModel.cs
- AssociationTypeEmitter.cs
- HtmlGenericControl.cs
- IdentityReference.cs
- TimeSpanStorage.cs
- ComponentResourceKey.cs
- KoreanCalendar.cs
- ErrorFormatterPage.cs
- TypeBuilder.cs
- JsonFormatMapping.cs
- OleDbPropertySetGuid.cs
- ControlTemplate.cs
- Function.cs