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
- Helper.cs
- RegexCompiler.cs
- RelationshipFixer.cs
- ArglessEventHandlerProxy.cs
- Statements.cs
- UpDownEvent.cs
- DbException.cs
- Camera.cs
- HttpRequestBase.cs
- Validator.cs
- Preprocessor.cs
- GACMembershipCondition.cs
- EntityTypeEmitter.cs
- DataGridViewComboBoxColumn.cs
- ListViewPagedDataSource.cs
- SeparatorAutomationPeer.cs
- _SslStream.cs
- KeyValueConfigurationElement.cs
- PeerObject.cs
- Debugger.cs
- RijndaelCryptoServiceProvider.cs
- Tile.cs
- GlyphRun.cs
- HeaderLabel.cs
- ObjectViewQueryResultData.cs
- OrderPreservingSpoolingTask.cs
- IntSecurity.cs
- SerializationStore.cs
- FileDialog_Vista_Interop.cs
- GeometryHitTestParameters.cs
- JsonReaderDelegator.cs
- DocumentViewerAutomationPeer.cs
- COM2ExtendedTypeConverter.cs
- WS2007FederationHttpBinding.cs
- AuthorizationSection.cs
- EntityDesignerDataSourceView.cs
- IisTraceWebEventProvider.cs
- SHA256CryptoServiceProvider.cs
- XmlSchemaType.cs
- WinFormsComponentEditor.cs
- assertwrapper.cs
- InvalidComObjectException.cs
- CodeCommentStatement.cs
- GetCardDetailsRequest.cs
- ToolStripManager.cs
- NetSectionGroup.cs
- HeaderCollection.cs
- DecimalConstantAttribute.cs
- BuilderPropertyEntry.cs
- WebPartConnectVerb.cs
- OnOperation.cs
- IDispatchConstantAttribute.cs
- View.cs
- IndentedWriter.cs
- RepeatInfo.cs
- XPathQilFactory.cs
- NotImplementedException.cs
- TrustLevel.cs
- Stream.cs
- Process.cs
- DetailsViewRow.cs
- EdmItemError.cs
- VectorAnimationBase.cs
- XmlIlGenerator.cs
- TypeListConverter.cs
- ConditionalAttribute.cs
- FacetDescription.cs
- Bitmap.cs
- LinqDataSourceEditData.cs
- SortQuery.cs
- TextLine.cs
- AspProxy.cs
- TableLayoutStyleCollection.cs
- SystemWebExtensionsSectionGroup.cs
- ContentType.cs
- CDSsyncETWBCLProvider.cs
- EmptyCollection.cs
- StylusCollection.cs
- OperatingSystem.cs
- ObjectDataProvider.cs
- TableLayoutPanelDesigner.cs
- SystemInformation.cs
- SHA256Cng.cs
- SecurityCriticalDataForSet.cs
- InlinedAggregationOperator.cs
- XamlReaderConstants.cs
- PropertyMappingExceptionEventArgs.cs
- PipelineModuleStepContainer.cs
- FixedSOMImage.cs
- ToolStripContainer.cs
- StateMachineWorkflowDesigner.cs
- SuppressMessageAttribute.cs
- FileNotFoundException.cs
- DelegatingStream.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Variable.cs
- UnicodeEncoding.cs
- ScriptingProfileServiceSection.cs
- TreeViewCancelEvent.cs
- BamlTreeMap.cs