Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleLink.cs
- AppDomainProtocolHandler.cs
- ClonableStack.cs
- SchemaAttDef.cs
- HtmlString.cs
- Axis.cs
- EventHandlerList.cs
- SchemaElementLookUpTable.cs
- ConnectionStringsExpressionBuilder.cs
- SafeArrayTypeMismatchException.cs
- WebHttpBindingCollectionElement.cs
- PageAsyncTaskManager.cs
- SafeNativeMethods.cs
- JoinCqlBlock.cs
- CallContext.cs
- AnnotationAuthorChangedEventArgs.cs
- DLinqTableProvider.cs
- CommonRemoteMemoryBlock.cs
- Version.cs
- OperationInfoBase.cs
- ListView.cs
- EntityViewGenerator.cs
- RegexGroup.cs
- RoleManagerEventArgs.cs
- NgenServicingAttributes.cs
- ColorConvertedBitmap.cs
- CheckoutException.cs
- SqlConnection.cs
- CultureSpecificCharacterBufferRange.cs
- sqlmetadatafactory.cs
- AppModelKnownContentFactory.cs
- StaticFileHandler.cs
- EnvironmentPermission.cs
- Normalization.cs
- MemberNameValidator.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- RequestStatusBarUpdateEventArgs.cs
- BinaryFormatter.cs
- SessionPageStatePersister.cs
- RecognizedAudio.cs
- WebPartEditorOkVerb.cs
- ExpressionLexer.cs
- FontDialog.cs
- TextViewSelectionProcessor.cs
- EventLogConfiguration.cs
- TabControlEvent.cs
- LoadedOrUnloadedOperation.cs
- PathSegment.cs
- FirewallWrapper.cs
- safex509handles.cs
- Matrix3DStack.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ObjRef.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ConstraintEnumerator.cs
- SymDocumentType.cs
- SupportingTokenSecurityTokenResolver.cs
- ConstraintConverter.cs
- BufferAllocator.cs
- Decorator.cs
- FatalException.cs
- ExpressionVisitor.cs
- GridView.cs
- DragEvent.cs
- FileDialogCustomPlaces.cs
- unsafeIndexingFilterStream.cs
- ToolStripPanelRow.cs
- WebRequest.cs
- CellQuery.cs
- QuaternionAnimationUsingKeyFrames.cs
- Section.cs
- RemoveStoryboard.cs
- EnumDataContract.cs
- ThrowHelper.cs
- SQLRoleProvider.cs
- EntityTypeBase.cs
- RealProxy.cs
- HttpApplicationFactory.cs
- CodeNamespace.cs
- XmlElement.cs
- XmlBinaryWriter.cs
- CookieParameter.cs
- LogLogRecordHeader.cs
- WizardPanel.cs
- SplitterEvent.cs
- DataIdProcessor.cs
- GatewayIPAddressInformationCollection.cs
- InputReport.cs
- UserControlCodeDomTreeGenerator.cs
- DecoderNLS.cs
- TreeWalkHelper.cs
- QuestionEventArgs.cs
- FederatedMessageSecurityOverHttp.cs
- TdsParameterSetter.cs
- Message.cs
- ObjectDataSourceDisposingEventArgs.cs
- LinkUtilities.cs
- DataTableNewRowEvent.cs
- SoapReflector.cs
- ContentPropertyAttribute.cs