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
- MetadataCacheItem.cs
- XamlHttpHandlerFactory.cs
- XmlSchemaAll.cs
- SqlMetaData.cs
- IgnoreFileBuildProvider.cs
- UpdatePanelControlTrigger.cs
- DbExpressionBuilder.cs
- HttpStreamMessageEncoderFactory.cs
- OdbcDataReader.cs
- XmlBinaryWriter.cs
- HttpRequestTraceRecord.cs
- AtomicFile.cs
- SqlDependencyListener.cs
- CellTreeNodeVisitors.cs
- Storyboard.cs
- ToolStripTextBox.cs
- EventBookmark.cs
- XmlSchemaValidationException.cs
- CompositeDataBoundControl.cs
- ConfigDefinitionUpdates.cs
- DataObjectAttribute.cs
- RequestBringIntoViewEventArgs.cs
- TreeNodeBinding.cs
- FormViewRow.cs
- AutomationElement.cs
- TextInfo.cs
- TdsParser.cs
- LinkLabel.cs
- AnnouncementEventArgs.cs
- LocalClientSecuritySettings.cs
- HierarchicalDataSourceControl.cs
- UserInitiatedRoutedEventPermission.cs
- XmlStringTable.cs
- BamlMapTable.cs
- FileUtil.cs
- SafeRightsManagementPubHandle.cs
- MessageBuffer.cs
- HierarchicalDataSourceDesigner.cs
- ClientOptions.cs
- ContextMenuStrip.cs
- DataGridViewBand.cs
- QueueProcessor.cs
- SrgsText.cs
- PageCodeDomTreeGenerator.cs
- Point3DValueSerializer.cs
- NamedPipeTransportBindingElement.cs
- BinaryNegotiation.cs
- ListBindingConverter.cs
- DispatcherHooks.cs
- HwndSubclass.cs
- DependencyPropertyValueSerializer.cs
- OdbcParameter.cs
- EntityDataSourceViewSchema.cs
- ShutDownListener.cs
- DescendantOverDescendantQuery.cs
- SQLDecimal.cs
- EntityParameterCollection.cs
- DataPagerField.cs
- ExplicitDiscriminatorMap.cs
- Crc32.cs
- PerformanceCounterLib.cs
- AppSettingsExpressionEditor.cs
- FileNameEditor.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ListChangedEventArgs.cs
- Sql8ConformanceChecker.cs
- Utils.cs
- WebPartEventArgs.cs
- ColumnMapVisitor.cs
- ProxyWebPartManager.cs
- FtpWebResponse.cs
- Point4D.cs
- RectAnimationBase.cs
- SafeNativeMethods.cs
- CodeAttributeDeclaration.cs
- StaticTextPointer.cs
- DomainUpDown.cs
- EdmToObjectNamespaceMap.cs
- CompiledXpathExpr.cs
- LabelAutomationPeer.cs
- HtmlTableRowCollection.cs
- DataComponentGenerator.cs
- ListDictionaryInternal.cs
- ByteAnimationUsingKeyFrames.cs
- DrawingAttributesDefaultValueFactory.cs
- XPathException.cs
- PresentationTraceSources.cs
- DateTimeUtil.cs
- Base64Stream.cs
- XpsImageSerializationService.cs
- ListViewCancelEventArgs.cs
- XamlParser.cs
- StringAnimationUsingKeyFrames.cs
- InputScopeAttribute.cs
- SemanticTag.cs
- Expression.cs
- RadioButtonStandardAdapter.cs
- HtmlInputCheckBox.cs
- grammarelement.cs
- DataGridViewBand.cs