Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Net / System / Net / NetworkInformation / IPGlobalProperties.cs / 1 / IPGlobalProperties.cs
using System;
using System.Net.Sockets;
using System.Net;
namespace System.Net.NetworkInformation
{
public abstract class IPGlobalProperties
{
public static IPGlobalProperties GetIPGlobalProperties(){
(new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
return new SystemIPGlobalProperties();
}
internal static IPGlobalProperties InternalGetIPGlobalProperties()
{
return new SystemIPGlobalProperties();
}
/// Gets the Active Udp Listeners on this machine
public abstract IPEndPoint[] GetActiveUdpListeners();
/// Gets the Active Tcp Listeners on this machine
public abstract IPEndPoint[] GetActiveTcpListeners ();
/// Gets the Active Udp Listeners on this machine
public abstract TcpConnectionInformation[] GetActiveTcpConnections();
/// Gets the Dynamic Host Configuration Protocol (DHCP) scope name.
public abstract string DhcpScopeName {get;}
/// Gets the domain in which the local computer is registered.
public abstract string DomainName {get;}
/// Gets the host name for the local computer.
public abstract string HostName {get;}
/// Gets a bool value that specifies whether the local computer is acting as a Windows Internet Name Service (WINS) proxy.
public abstract bool IsWinsProxy {get;}
/// Gets the Network Basic Input/Output System (NetBIOS) node type of the local computer.
public abstract NetBiosNodeType NodeType{get;}
public abstract TcpStatistics GetTcpIPv4Statistics();
public abstract TcpStatistics GetTcpIPv6Statistics();
/// Provides Internet Control Message Protocol (ICMP) version 4 statistical data for the local computer.
/// Provides User Datagram Protocol (UDP) statistical data for the local computer.
public abstract UdpStatistics GetUdpIPv4Statistics();
public abstract UdpStatistics GetUdpIPv6Statistics();
/// Provides Internet Control Message Protocol (ICMP) version 4 statistical data for the local computer.
public abstract IcmpV4Statistics GetIcmpV4Statistics();
/// Provides Internet Control Message Protocol (ICMP) version 6 statistical data for the local computer.
public abstract IcmpV6Statistics GetIcmpV6Statistics();
/// Provides Internet Protocol (IP) statistical data for the local computer.
public abstract IPGlobalStatistics GetIPv4GlobalStatistics();
public abstract IPGlobalStatistics GetIPv6GlobalStatistics();
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Net.Sockets;
using System.Net;
namespace System.Net.NetworkInformation
{
public abstract class IPGlobalProperties
{
public static IPGlobalProperties GetIPGlobalProperties(){
(new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
return new SystemIPGlobalProperties();
}
internal static IPGlobalProperties InternalGetIPGlobalProperties()
{
return new SystemIPGlobalProperties();
}
/// Gets the Active Udp Listeners on this machine
public abstract IPEndPoint[] GetActiveUdpListeners();
/// Gets the Active Tcp Listeners on this machine
public abstract IPEndPoint[] GetActiveTcpListeners ();
/// Gets the Active Udp Listeners on this machine
public abstract TcpConnectionInformation[] GetActiveTcpConnections();
/// Gets the Dynamic Host Configuration Protocol (DHCP) scope name.
public abstract string DhcpScopeName {get;}
/// Gets the domain in which the local computer is registered.
public abstract string DomainName {get;}
/// Gets the host name for the local computer.
public abstract string HostName {get;}
/// Gets a bool value that specifies whether the local computer is acting as a Windows Internet Name Service (WINS) proxy.
public abstract bool IsWinsProxy {get;}
/// Gets the Network Basic Input/Output System (NetBIOS) node type of the local computer.
public abstract NetBiosNodeType NodeType{get;}
public abstract TcpStatistics GetTcpIPv4Statistics();
public abstract TcpStatistics GetTcpIPv6Statistics();
/// Provides Internet Control Message Protocol (ICMP) version 4 statistical data for the local computer.
/// Provides User Datagram Protocol (UDP) statistical data for the local computer.
public abstract UdpStatistics GetUdpIPv4Statistics();
public abstract UdpStatistics GetUdpIPv6Statistics();
/// Provides Internet Control Message Protocol (ICMP) version 4 statistical data for the local computer.
public abstract IcmpV4Statistics GetIcmpV4Statistics();
/// Provides Internet Control Message Protocol (ICMP) version 6 statistical data for the local computer.
public abstract IcmpV6Statistics GetIcmpV6Statistics();
/// Provides Internet Protocol (IP) statistical data for the local computer.
public abstract IPGlobalStatistics GetIPv4GlobalStatistics();
public abstract IPGlobalStatistics GetIPv6GlobalStatistics();
}
}
// 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
- Int32CAMarshaler.cs
- QueryContext.cs
- ToolStripHighContrastRenderer.cs
- SQLMembershipProvider.cs
- MexTcpBindingCollectionElement.cs
- EntityTransaction.cs
- SqlTypesSchemaImporter.cs
- FastPropertyAccessor.cs
- FrameworkContextData.cs
- HttpCachePolicy.cs
- TypeElement.cs
- PrivilegedConfigurationManager.cs
- UIElementAutomationPeer.cs
- ModelService.cs
- OperationFormatUse.cs
- XmlSchemaImport.cs
- CmsInterop.cs
- PrintSystemException.cs
- ObjectDataSourceStatusEventArgs.cs
- PermissionRequestEvidence.cs
- BrowserCapabilitiesFactory35.cs
- TTSEngineProxy.cs
- StateBag.cs
- XmlWriterSettings.cs
- SyndicationDeserializer.cs
- TextRenderer.cs
- LogicalExpr.cs
- QueryCacheKey.cs
- DbConvert.cs
- ControlAdapter.cs
- XPathNavigatorReader.cs
- TextUtf8RawTextWriter.cs
- GridItemPattern.cs
- SyndicationElementExtension.cs
- MulticastNotSupportedException.cs
- Attribute.cs
- HttpAsyncResult.cs
- RequiredAttributeAttribute.cs
- BulletChrome.cs
- ConstrainedGroup.cs
- DrawingImage.cs
- ToolStripGripRenderEventArgs.cs
- XmlRawWriterWrapper.cs
- SimpleLine.cs
- TreeBuilder.cs
- SizeChangedEventArgs.cs
- XmlStringTable.cs
- nulltextnavigator.cs
- ConstraintStruct.cs
- BaseResourcesBuildProvider.cs
- OdbcHandle.cs
- HtmlFormWrapper.cs
- ToolStripPanel.cs
- PopOutPanel.cs
- ControlBuilder.cs
- CollectionType.cs
- ProviderSettings.cs
- DataSourceCache.cs
- StickyNote.cs
- UnsafeNativeMethods.cs
- PackagePartCollection.cs
- OdbcEnvironment.cs
- EntityContainerAssociationSetEnd.cs
- ParameterModifier.cs
- NullableLongSumAggregationOperator.cs
- DropDownHolder.cs
- RtfControlWordInfo.cs
- StylusShape.cs
- Wildcard.cs
- TypefaceCollection.cs
- BaseValidator.cs
- OrderedParallelQuery.cs
- HttpDictionary.cs
- _Rfc2616CacheValidators.cs
- FlowNode.cs
- MexServiceChannelBuilder.cs
- DependencyPropertyKind.cs
- RefreshEventArgs.cs
- UnsafeNativeMethods.cs
- EmptyEnumerator.cs
- Int32Collection.cs
- DataBindingCollection.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- SerializationInfoEnumerator.cs
- Switch.cs
- FreeFormPanel.cs
- MarginCollapsingState.cs
- GridErrorDlg.cs
- FigureParaClient.cs
- MailMessage.cs
- XmlTextReaderImplHelpers.cs
- TrustLevelCollection.cs
- SecurityCookieModeValidator.cs
- DataGridViewLayoutData.cs
- OdbcHandle.cs
- DefaultEventAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- CodeAccessPermission.cs
- SizeValueSerializer.cs
- oledbmetadatacollectionnames.cs