Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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));
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GraphicsState.cs
- MergePropertyDescriptor.cs
- TriggerAction.cs
- GridViewRowPresenterBase.cs
- AssemblyResourceLoader.cs
- Stroke2.cs
- EditorPartChrome.cs
- GridViewDeletedEventArgs.cs
- HybridObjectCache.cs
- SecurityState.cs
- DecimalAnimation.cs
- SqlTrackingWorkflowInstance.cs
- HttpCookieCollection.cs
- OleDbPropertySetGuid.cs
- DataSourceDesigner.cs
- DocumentViewer.cs
- Compiler.cs
- PowerStatus.cs
- FrameworkPropertyMetadata.cs
- XmlNavigatorStack.cs
- SqlBuilder.cs
- XmlElementElement.cs
- MD5.cs
- WindowsTokenRoleProvider.cs
- XmlTypeMapping.cs
- CssTextWriter.cs
- DataBindingValueUIHandler.cs
- ObjectResult.cs
- NameHandler.cs
- Vector3D.cs
- PropertyStore.cs
- PrefixQName.cs
- GraphicsState.cs
- ObjectNavigationPropertyMapping.cs
- MediaScriptCommandRoutedEventArgs.cs
- OdbcParameterCollection.cs
- MonitorWrapper.cs
- CustomCredentialPolicy.cs
- XmlDigitalSignatureProcessor.cs
- ListViewDeletedEventArgs.cs
- FormViewDeleteEventArgs.cs
- ToolstripProfessionalRenderer.cs
- FixedDocument.cs
- LocalServiceSecuritySettings.cs
- ReplacementText.cs
- WebConfigManager.cs
- ConstructorNeedsTagAttribute.cs
- CatalogUtil.cs
- BamlLocalizationDictionary.cs
- ToolStripArrowRenderEventArgs.cs
- MessageDecoder.cs
- CodeSubDirectory.cs
- WebBrowserContainer.cs
- DataTableExtensions.cs
- dataSvcMapFileLoader.cs
- TextTreeFixupNode.cs
- CallbackCorrelationInitializer.cs
- EventPrivateKey.cs
- Permission.cs
- SiteMapPath.cs
- PasswordDeriveBytes.cs
- TransformedBitmap.cs
- SqlTransaction.cs
- RectValueSerializer.cs
- DataGridBoolColumn.cs
- XmlQueryCardinality.cs
- CreateUserWizardStep.cs
- CharAnimationUsingKeyFrames.cs
- BufferedOutputStream.cs
- hresults.cs
- DataBindingCollection.cs
- TreeNode.cs
- ValuePatternIdentifiers.cs
- XhtmlBasicLiteralTextAdapter.cs
- ActiveXContainer.cs
- EmptyEnumerator.cs
- MappingModelBuildProvider.cs
- XmlDataSource.cs
- UInt16Converter.cs
- AssemblyBuilder.cs
- JsonFormatWriterGenerator.cs
- UIntPtr.cs
- TraceLog.cs
- Convert.cs
- JoinGraph.cs
- ModelUIElement3D.cs
- SoapException.cs
- AsyncResult.cs
- RichListBox.cs
- RC2.cs
- CreateUserWizard.cs
- RouteParametersHelper.cs
- PkcsMisc.cs
- InternalResources.cs
- StateItem.cs
- TextLineBreak.cs
- ChangeConflicts.cs
- FragmentQueryKB.cs
- DefaultProxySection.cs
- SparseMemoryStream.cs