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
- StringUtil.cs
- AttributeEmitter.cs
- NullableBoolConverter.cs
- ToolStripArrowRenderEventArgs.cs
- WebPartMenu.cs
- DecimalAnimationUsingKeyFrames.cs
- GeometryValueSerializer.cs
- PeerNearMe.cs
- RequestCacheEntry.cs
- PointLightBase.cs
- BitmapEffectInputConnector.cs
- TextRangeEdit.cs
- WinEventQueueItem.cs
- InkCollectionBehavior.cs
- Baml2006ReaderSettings.cs
- OutgoingWebResponseContext.cs
- DataGridViewColumnCollectionDialog.cs
- DateTimeFormatInfo.cs
- ProgressBarRenderer.cs
- TypeUtils.cs
- DatagridviewDisplayedBandsData.cs
- CssTextWriter.cs
- ServicePointManagerElement.cs
- Point.cs
- ReadonlyMessageFilter.cs
- PreApplicationStartMethodAttribute.cs
- UnsettableComboBox.cs
- Helper.cs
- GroupItemAutomationPeer.cs
- BuilderPropertyEntry.cs
- InputScopeManager.cs
- Clipboard.cs
- filewebrequest.cs
- Zone.cs
- RawStylusInput.cs
- ParallelTimeline.cs
- FilteredAttributeCollection.cs
- SchemaNames.cs
- KeyValueConfigurationElement.cs
- UnmanagedMemoryStreamWrapper.cs
- Environment.cs
- MimeBasePart.cs
- sqlser.cs
- FocusChangedEventArgs.cs
- InsufficientMemoryException.cs
- DataGridRowDetailsEventArgs.cs
- InternalControlCollection.cs
- Ref.cs
- TextRangeEditTables.cs
- validationstate.cs
- HttpRawResponse.cs
- ResourceProviderFactory.cs
- IIS7UserPrincipal.cs
- IPHostEntry.cs
- CqlErrorHelper.cs
- ListControl.cs
- DocComment.cs
- InternalBase.cs
- TextTreeUndo.cs
- Pen.cs
- _CacheStreams.cs
- Control.cs
- DesignerView.Commands.cs
- RadioButton.cs
- PropertyManager.cs
- UndirectedGraph.cs
- StylusEventArgs.cs
- HttpException.cs
- Point.cs
- PointAnimationBase.cs
- HostedNamedPipeTransportManager.cs
- ElementHost.cs
- ToolStripItemTextRenderEventArgs.cs
- XmlUTF8TextReader.cs
- TimerElapsedEvenArgs.cs
- DurationConverter.cs
- BitmapEffectGroup.cs
- XmlSerializer.cs
- HostingMessageProperty.cs
- StyleTypedPropertyAttribute.cs
- XmlHierarchicalEnumerable.cs
- PerformanceCounter.cs
- OneOfTypeConst.cs
- Point3DConverter.cs
- ConfigurationProperty.cs
- TdsParameterSetter.cs
- StringAnimationBase.cs
- SpeakInfo.cs
- infer.cs
- AdPostCacheSubstitution.cs
- DataGridViewElement.cs
- InputBinding.cs
- GridPatternIdentifiers.cs
- SafeMILHandle.cs
- DetailsViewPageEventArgs.cs
- EntitySetDataBindingList.cs
- PropertyConverter.cs
- BuildManager.cs
- SelectionChangedEventArgs.cs
- SoapCodeExporter.cs