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
- SqlCommand.cs
- NotSupportedException.cs
- SupportingTokenAuthenticatorSpecification.cs
- DistinctQueryOperator.cs
- Filter.cs
- DateTimeConverter.cs
- ResourceManager.cs
- UrlAuthorizationModule.cs
- VectorConverter.cs
- FacetValueContainer.cs
- PersistenceProviderFactory.cs
- PropertySegmentSerializer.cs
- RelatedEnd.cs
- CollectionExtensions.cs
- AddInDeploymentState.cs
- ISAPIApplicationHost.cs
- WebRequestModuleElement.cs
- RegexMatch.cs
- ModuleBuilderData.cs
- ConnectionPointGlyph.cs
- LinkClickEvent.cs
- hresults.cs
- AssemblyCache.cs
- Identifier.cs
- HyperLinkField.cs
- OdbcConnectionPoolProviderInfo.cs
- IconConverter.cs
- XamlVector3DCollectionSerializer.cs
- PolyLineSegment.cs
- DictionaryContent.cs
- TemplateBindingExpressionConverter.cs
- WebServiceClientProxyGenerator.cs
- ReflectEventDescriptor.cs
- MethodCallConverter.cs
- TextReader.cs
- ConnectionStringSettingsCollection.cs
- ToolZoneDesigner.cs
- ListViewDataItem.cs
- XmlDataSource.cs
- PtsCache.cs
- TdsEnums.cs
- BindingsCollection.cs
- ByteAnimation.cs
- SerialStream.cs
- PreviewKeyDownEventArgs.cs
- CompoundFileDeflateTransform.cs
- bindurihelper.cs
- SafeIUnknown.cs
- OpenTypeLayoutCache.cs
- TextElementEnumerator.cs
- InheritanceRules.cs
- XslTransformFileEditor.cs
- SystemWebSectionGroup.cs
- DelegateHelpers.cs
- RadioButton.cs
- TdsEnums.cs
- Expander.cs
- ThaiBuddhistCalendar.cs
- FileCodeGroup.cs
- VariableQuery.cs
- Triangle.cs
- XmlSchemaInferenceException.cs
- PassportAuthenticationEventArgs.cs
- DSASignatureFormatter.cs
- ToggleProviderWrapper.cs
- CalendarDay.cs
- Error.cs
- OperationAbortedException.cs
- Tuple.cs
- HtmlImage.cs
- ListItemParagraph.cs
- Int64KeyFrameCollection.cs
- XmlComment.cs
- DeploymentSection.cs
- ListViewDeletedEventArgs.cs
- SecurityKeyIdentifierClause.cs
- AttachmentService.cs
- GetWinFXPath.cs
- TabItemAutomationPeer.cs
- FrameworkContentElement.cs
- CodeDomDesignerLoader.cs
- EnumerableValidator.cs
- TextPatternIdentifiers.cs
- COAUTHINFO.cs
- ToolStripDropDown.cs
- ResourceCodeDomSerializer.cs
- IFormattable.cs
- BStrWrapper.cs
- ResourceReferenceKeyNotFoundException.cs
- KeyGesture.cs
- SiteMapNodeItemEventArgs.cs
- SupportingTokenParameters.cs
- CurrentChangingEventManager.cs
- ModelItemCollection.cs
- MdbDataFileEditor.cs
- InternalConfigEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- TraceLevelStore.cs
- FileLogRecordStream.cs
- BitmapEffectDrawing.cs