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
- ConfigurationManagerHelperFactory.cs
- TCPListener.cs
- SafeRightsManagementHandle.cs
- SmiEventSink_Default.cs
- PathTooLongException.cs
- HostedHttpContext.cs
- TemplateContainer.cs
- RenderData.cs
- TemplatedAdorner.cs
- MatrixAnimationUsingKeyFrames.cs
- QilName.cs
- BuilderPropertyEntry.cs
- WindowsButton.cs
- SecurityElement.cs
- GlyphElement.cs
- TextTrailingWordEllipsis.cs
- SerializationSectionGroup.cs
- Matrix.cs
- WinInet.cs
- FullTextState.cs
- InternalResources.cs
- WebCategoryAttribute.cs
- Int32Converter.cs
- Configuration.cs
- ipaddressinformationcollection.cs
- SecurityCriticalDataForSet.cs
- HtmlControl.cs
- DecoderReplacementFallback.cs
- NamespaceList.cs
- CodeVariableReferenceExpression.cs
- CurrencyWrapper.cs
- LockCookie.cs
- OneToOneMappingSerializer.cs
- ContainerParaClient.cs
- NotFiniteNumberException.cs
- StylusTouchDevice.cs
- SafeNativeMethodsCLR.cs
- Simplifier.cs
- Events.cs
- AnnotationElement.cs
- BinaryReader.cs
- LocalIdKeyIdentifierClause.cs
- GrammarBuilderPhrase.cs
- SqlCacheDependencySection.cs
- MissingFieldException.cs
- SerializationObjectManager.cs
- Visual3DCollection.cs
- DataServiceClientException.cs
- ExtenderHelpers.cs
- recordstate.cs
- MatrixValueSerializer.cs
- keycontainerpermission.cs
- ellipse.cs
- XmlLanguageConverter.cs
- StandardMenuStripVerb.cs
- ConfigurationValidatorBase.cs
- TdsParser.cs
- DesignerTransactionCloseEvent.cs
- OutputCacheSection.cs
- ExtenderControl.cs
- ZipArchive.cs
- RequestQueue.cs
- Misc.cs
- TextEffect.cs
- CellCreator.cs
- Point3DCollection.cs
- CompatibleIComparer.cs
- Context.cs
- GlyphingCache.cs
- ToolStripContentPanel.cs
- NodeCounter.cs
- ExportOptions.cs
- TdsParser.cs
- KeyboardEventArgs.cs
- _BaseOverlappedAsyncResult.cs
- Executor.cs
- ScriptRef.cs
- InfiniteIntConverter.cs
- Psha1DerivedKeyGenerator.cs
- SerializationSectionGroup.cs
- XmlExtensionFunction.cs
- ChtmlTextWriter.cs
- PrivacyNoticeBindingElement.cs
- LineServicesCallbacks.cs
- mediaeventshelper.cs
- FieldNameLookup.cs
- AdRotator.cs
- XPathSelfQuery.cs
- GridEntryCollection.cs
- FormatVersion.cs
- InvalidComObjectException.cs
- TemplateBaseAction.cs
- Effect.cs
- DataGridTablesFactory.cs
- XPathScanner.cs
- CodeSnippetTypeMember.cs
- Transform3DCollection.cs
- GridViewDeletedEventArgs.cs
- SerializationObjectManager.cs
- DeploymentSection.cs