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
- AddInSegmentDirectoryNotFoundException.cs
- EmulateRecognizeCompletedEventArgs.cs
- NamespaceEmitter.cs
- ToolBarOverflowPanel.cs
- OracleException.cs
- __TransparentProxy.cs
- FaultPropagationRecord.cs
- CompositeScriptReference.cs
- DataGridRowHeader.cs
- PropertyGeneratedEventArgs.cs
- NativeMethods.cs
- TextElementCollection.cs
- Message.cs
- EntityDataSourceViewSchema.cs
- BasicViewGenerator.cs
- SecUtil.cs
- EdmComplexTypeAttribute.cs
- StrokeNode.cs
- StateBag.cs
- SplashScreenNativeMethods.cs
- ProxyHwnd.cs
- dataprotectionpermission.cs
- DataControlImageButton.cs
- CommonRemoteMemoryBlock.cs
- validationstate.cs
- UntrustedRecipientException.cs
- PersonalizationStateQuery.cs
- HostProtectionPermission.cs
- SecurityTokenException.cs
- ScrollItemProviderWrapper.cs
- FunctionDefinition.cs
- SafeLibraryHandle.cs
- RadioButton.cs
- XmlSchemaAnnotation.cs
- METAHEADER.cs
- PlainXmlSerializer.cs
- AnnotationObservableCollection.cs
- XpsFixedPageReaderWriter.cs
- ResourceReferenceExpression.cs
- FrameworkElementAutomationPeer.cs
- IntegerValidatorAttribute.cs
- HtmlEncodedRawTextWriter.cs
- ActivityInterfaces.cs
- XmlFormatExtensionAttribute.cs
- DataGridViewCellStateChangedEventArgs.cs
- ActivityUtilities.cs
- EmbossBitmapEffect.cs
- ManagementBaseObject.cs
- LocalBuilder.cs
- SqlPersonalizationProvider.cs
- CompositionTarget.cs
- SymbolMethod.cs
- HandlerFactoryWrapper.cs
- EmptyEnumerator.cs
- Win32SafeHandles.cs
- TextTreeTextBlock.cs
- TransformFinalBlockRequest.cs
- RenderOptions.cs
- XMLSyntaxException.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CodeTypeDeclaration.cs
- TypeSystem.cs
- XPathNodeList.cs
- SuppressMessageAttribute.cs
- CommonObjectSecurity.cs
- XPathDocumentNavigator.cs
- SQLResource.cs
- COM2FontConverter.cs
- PersonalizationProvider.cs
- ConsoleKeyInfo.cs
- EmptyCollection.cs
- HttpRequestMessageProperty.cs
- RemoteWebConfigurationHost.cs
- InputLanguageProfileNotifySink.cs
- CodeGroup.cs
- CodeFieldReferenceExpression.cs
- BuildTopDownAttribute.cs
- InProcStateClientManager.cs
- ChangeBlockUndoRecord.cs
- SyntaxCheck.cs
- ContentElement.cs
- XmlAttributeCollection.cs
- PreProcessor.cs
- ContractNamespaceAttribute.cs
- StringAnimationUsingKeyFrames.cs
- LightweightCodeGenerator.cs
- VirtualPath.cs
- ScrollData.cs
- HashSetDebugView.cs
- OperationAbortedException.cs
- MemberDomainMap.cs
- Popup.cs
- NullableBoolConverter.cs
- ToggleButton.cs
- ProcessHostFactoryHelper.cs
- XmlTextWriter.cs
- DynamicDocumentPaginator.cs
- DesignerPainter.cs
- NumberFormatInfo.cs
- SplineQuaternionKeyFrame.cs