Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Net / System / Net / NetworkInformation / GatewayIPAddressInformationCollection.cs / 1 / 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 null; } /// 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. 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 null; } /// 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
- Version.cs
- CngUIPolicy.cs
- FormsAuthenticationUser.cs
- MgmtConfigurationRecord.cs
- PolicyChain.cs
- XmlTypeMapping.cs
- SingleObjectCollection.cs
- XmlCharType.cs
- CapiSafeHandles.cs
- Utils.cs
- ValueCollectionParameterReader.cs
- SecurityBindingElementImporter.cs
- WebSysDefaultValueAttribute.cs
- HwndStylusInputProvider.cs
- ListViewSortEventArgs.cs
- ConfigurationManager.cs
- HttpConfigurationSystem.cs
- LinkLabel.cs
- M3DUtil.cs
- ProcessHostServerConfig.cs
- HttpPostedFile.cs
- FilteredReadOnlyMetadataCollection.cs
- ISAPIApplicationHost.cs
- DragCompletedEventArgs.cs
- SplashScreenNativeMethods.cs
- CTreeGenerator.cs
- ChildTable.cs
- followingquery.cs
- NameValueSectionHandler.cs
- _NetworkingPerfCounters.cs
- DataGridViewRowsAddedEventArgs.cs
- XmlDictionary.cs
- ValidationSummary.cs
- StyleBamlTreeBuilder.cs
- XmlWriterTraceListener.cs
- RequestTimeoutManager.cs
- TextStore.cs
- _CookieModule.cs
- SqlClientWrapperSmiStream.cs
- ScrollPattern.cs
- ExpressionNormalizer.cs
- ReaderContextStackData.cs
- ToolBar.cs
- AutomationPattern.cs
- _NetworkingPerfCounters.cs
- dsa.cs
- ApplicationSecurityInfo.cs
- Path.cs
- NamespaceInfo.cs
- BufferedReadStream.cs
- WebSysDescriptionAttribute.cs
- DrawingCollection.cs
- RuleSetBrowserDialog.cs
- Helper.cs
- BuildManager.cs
- PolicyException.cs
- CodeStatement.cs
- TimelineGroup.cs
- TextAction.cs
- WebPartDisplayMode.cs
- OrderByQueryOptionExpression.cs
- SiteMembershipCondition.cs
- DirectionalAction.cs
- DataSourceIDConverter.cs
- CompositeFontFamily.cs
- DefaultTraceListener.cs
- SerializerProvider.cs
- GridViewAutoFormat.cs
- WeakReference.cs
- XmlSchemaSequence.cs
- ImageMetadata.cs
- XPathDocumentIterator.cs
- LifetimeManager.cs
- TimeSpanStorage.cs
- SByte.cs
- FontNamesConverter.cs
- ListViewSortEventArgs.cs
- NativeMethods.cs
- TakeOrSkipWhileQueryOperator.cs
- WindowsIPAddress.cs
- ComboBoxItem.cs
- SHA256.cs
- Triplet.cs
- StylusPointPropertyUnit.cs
- LoginUtil.cs
- DataGridParentRows.cs
- IntSecurity.cs
- XmlSchemaAppInfo.cs
- XmlArrayItemAttributes.cs
- EnumMemberAttribute.cs
- AndCondition.cs
- RegexInterpreter.cs
- XmlNotation.cs
- securestring.cs
- SchemaTypeEmitter.cs
- SymmetricKeyWrap.cs
- HighlightComponent.cs
- Lasso.cs
- DataViewListener.cs
- DataControlField.cs