Code:
/ 4.0 / 4.0 / 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. 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
- EnumUnknown.cs
- SymLanguageVendor.cs
- UnmanagedMemoryStreamWrapper.cs
- TreeNodeStyleCollection.cs
- Span.cs
- FileRecordSequenceHelper.cs
- PathData.cs
- RegexCompiler.cs
- UserPreferenceChangingEventArgs.cs
- CancellationState.cs
- SafeBitVector32.cs
- SpellerError.cs
- CodeMemberEvent.cs
- DataMemberConverter.cs
- SortExpressionBuilder.cs
- QueryAccessibilityHelpEvent.cs
- CompiledAction.cs
- Scene3D.cs
- UnsafeNativeMethodsTablet.cs
- DataGridViewRowHeaderCell.cs
- TableItemPattern.cs
- EFDataModelProvider.cs
- ExpandableObjectConverter.cs
- OciHandle.cs
- MsmqIntegrationBindingCollectionElement.cs
- LingerOption.cs
- Part.cs
- GridItemProviderWrapper.cs
- SkewTransform.cs
- DrawingContextDrawingContextWalker.cs
- MsmqOutputMessage.cs
- PassportIdentity.cs
- SemanticAnalyzer.cs
- ReadOnlyCollection.cs
- SeekStoryboard.cs
- MembershipSection.cs
- StatusBar.cs
- panel.cs
- WebPartsPersonalizationAuthorization.cs
- OuterGlowBitmapEffect.cs
- CustomAttributeBuilder.cs
- TransformGroup.cs
- CfgParser.cs
- AutoSizeComboBox.cs
- ViewManager.cs
- SortQuery.cs
- TextElementCollectionHelper.cs
- ElementProxy.cs
- X509SubjectKeyIdentifierClause.cs
- X509AudioLogo.cs
- BufferedWebEventProvider.cs
- XmlArrayItemAttribute.cs
- WindowHelperService.cs
- HttpGetClientProtocol.cs
- Misc.cs
- Stack.cs
- OrderedDictionary.cs
- PackagePart.cs
- DataGridPagerStyle.cs
- Ray3DHitTestResult.cs
- PrintDocument.cs
- GridEntry.cs
- ContainerSelectorActiveEvent.cs
- AlgoModule.cs
- BitmapData.cs
- Padding.cs
- HtmlInputPassword.cs
- LifetimeServices.cs
- XmlNodeReader.cs
- PageBuildProvider.cs
- TrackingProfileSerializer.cs
- ModuleBuilder.cs
- DiagnosticTraceSchemas.cs
- DetailsViewInsertedEventArgs.cs
- SqlDataAdapter.cs
- OdbcException.cs
- MenuItemBindingCollection.cs
- BitmapEffectDrawingContent.cs
- ClockController.cs
- InitializationEventAttribute.cs
- AuthorizationRule.cs
- DrawingContextDrawingContextWalker.cs
- SafeIUnknown.cs
- StylusPointCollection.cs
- RelationshipConverter.cs
- ChannelManagerHelpers.cs
- Quad.cs
- DefaultProxySection.cs
- EntityParameter.cs
- XmlReaderSettings.cs
- WpfGeneratedKnownProperties.cs
- DataConnectionHelper.cs
- Mutex.cs
- DrawingGroup.cs
- LeftCellWrapper.cs
- Cloud.cs
- PeerContact.cs
- CompoundFileStorageReference.cs
- MatchingStyle.cs
- DecoderNLS.cs