Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / IPGlobalProperties.cs / 1305376 / 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(); /// Returns a list of all unicast IP addresses after ensuring they are all stable public virtual UnicastIPAddressInformationCollection GetUnicastAddresses() { throw ExceptionHelper.MethodNotImplementedException; } public virtual IAsyncResult BeginGetUnicastAddresses(AsyncCallback callback, object state) { throw ExceptionHelper.MethodNotImplementedException; } public virtual UnicastIPAddressInformationCollection EndGetUnicastAddresses(IAsyncResult asyncResult) { throw ExceptionHelper.MethodNotImplementedException; } } } // 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(); /// Returns a list of all unicast IP addresses after ensuring they are all stable public virtual UnicastIPAddressInformationCollection GetUnicastAddresses() { throw ExceptionHelper.MethodNotImplementedException; } public virtual IAsyncResult BeginGetUnicastAddresses(AsyncCallback callback, object state) { throw ExceptionHelper.MethodNotImplementedException; } public virtual UnicastIPAddressInformationCollection EndGetUnicastAddresses(IAsyncResult asyncResult) { throw ExceptionHelper.MethodNotImplementedException; } } } // 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
- SqlCacheDependencySection.cs
- CachedBitmap.cs
- ControlsConfig.cs
- Types.cs
- WeakReference.cs
- RSAPKCS1SignatureFormatter.cs
- BaseServiceProvider.cs
- Pts.cs
- DetailsViewDeleteEventArgs.cs
- HtmlTableRowCollection.cs
- PairComparer.cs
- CodeTypeMemberCollection.cs
- ServicesUtilities.cs
- MultipleViewProviderWrapper.cs
- _Semaphore.cs
- AssemblyAttributesGoHere.cs
- CollectionViewProxy.cs
- TextDecorationCollectionConverter.cs
- HtmlWindow.cs
- Propagator.ExtentPlaceholderCreator.cs
- xdrvalidator.cs
- TypeDescriptorFilterService.cs
- XmlDataSourceDesigner.cs
- Adorner.cs
- HorizontalAlignConverter.cs
- DataTableCollection.cs
- CompositionAdorner.cs
- PixelShader.cs
- SinglePageViewer.cs
- RuleInfoComparer.cs
- RepeatInfo.cs
- SamlAuthorityBinding.cs
- RegularExpressionValidator.cs
- TextParaClient.cs
- WebPartManagerInternals.cs
- EventArgs.cs
- XmlSortKeyAccumulator.cs
- SchemaNames.cs
- DataGridCaption.cs
- DispatcherObject.cs
- TreeIterators.cs
- DropShadowEffect.cs
- Content.cs
- HostingEnvironmentSection.cs
- EntityDataSourceQueryBuilder.cs
- Helper.cs
- PanelContainerDesigner.cs
- EndpointAddressElementBase.cs
- PropertyTab.cs
- AsymmetricSignatureDeformatter.cs
- XPathNodeInfoAtom.cs
- SqlVersion.cs
- XmlSerializerFactory.cs
- HelpKeywordAttribute.cs
- RawMouseInputReport.cs
- Completion.cs
- RSAPKCS1SignatureDeformatter.cs
- TextLineResult.cs
- RSAPKCS1SignatureFormatter.cs
- ControlPropertyNameConverter.cs
- ProfileParameter.cs
- LayoutEditorPart.cs
- AccessText.cs
- WpfWebRequestHelper.cs
- Setter.cs
- GlobalAllocSafeHandle.cs
- HtmlAnchor.cs
- WebPartMinimizeVerb.cs
- TextContainer.cs
- IncomingWebResponseContext.cs
- JsonReader.cs
- ToolStripArrowRenderEventArgs.cs
- TargetInvocationException.cs
- ResourceCodeDomSerializer.cs
- Vector3DConverter.cs
- RuntimeComponentFilter.cs
- EventDescriptor.cs
- ScrollChrome.cs
- CommentEmitter.cs
- SessionPageStatePersister.cs
- mediaclock.cs
- TransformValueSerializer.cs
- TextTreeRootTextBlock.cs
- CircleHotSpot.cs
- ServiceInfoCollection.cs
- NameValuePermission.cs
- EllipseGeometry.cs
- TrailingSpaceComparer.cs
- ProvidePropertyAttribute.cs
- MimeBasePart.cs
- CookielessHelper.cs
- ComplexBindingPropertiesAttribute.cs
- CompareValidator.cs
- ContentValidator.cs
- PathFigureCollection.cs
- DisplayNameAttribute.cs
- MobileControl.cs
- EraserBehavior.cs
- BaseParagraph.cs
- DESCryptoServiceProvider.cs