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
- HttpWebRequest.cs
- FormatException.cs
- GeometryDrawing.cs
- CancelEventArgs.cs
- VoiceSynthesis.cs
- MimeImporter.cs
- XmlDeclaration.cs
- RadioButtonStandardAdapter.cs
- ObjectResult.cs
- WorkflowInstanceExtensionCollection.cs
- ButtonPopupAdapter.cs
- ByteStorage.cs
- OleStrCAMarshaler.cs
- ContainsRowNumberChecker.cs
- WebPartZoneCollection.cs
- JournalEntryListConverter.cs
- VoiceInfo.cs
- SystemSounds.cs
- DataMemberConverter.cs
- MethodSignatureGenerator.cs
- AsynchronousChannelMergeEnumerator.cs
- TemplateXamlParser.cs
- ProviderConnectionPointCollection.cs
- Durable.cs
- BasicSecurityProfileVersion.cs
- DateTimeConstantAttribute.cs
- SmtpFailedRecipientsException.cs
- NetWebProxyFinder.cs
- WindowsAltTab.cs
- BinaryParser.cs
- SiteMembershipCondition.cs
- PeerApplicationLaunchInfo.cs
- PeerDefaultCustomResolverClient.cs
- AuthenticationManager.cs
- MaskedTextBox.cs
- UnsafeNativeMethods.cs
- PartialCachingAttribute.cs
- AssemblyBuilder.cs
- AsyncPostBackErrorEventArgs.cs
- XmlHierarchyData.cs
- BitmapEffectCollection.cs
- XmlTextReader.cs
- DataGrid.cs
- DataServiceSaveChangesEventArgs.cs
- HuffModule.cs
- CheckBoxList.cs
- WeakHashtable.cs
- CallbackDebugBehavior.cs
- WebControlAdapter.cs
- CheckBoxRenderer.cs
- SHA512.cs
- EditCommandColumn.cs
- Atom10FormatterFactory.cs
- MasterPageCodeDomTreeGenerator.cs
- DisplayMemberTemplateSelector.cs
- UndoManager.cs
- SqlDataSourceQueryEditorForm.cs
- ProxyGenerator.cs
- FixedLineResult.cs
- AutoGeneratedField.cs
- DragDrop.cs
- ServiceDebugElement.cs
- FilterableData.cs
- ActivityTypeDesigner.xaml.cs
- DataServiceRequestOfT.cs
- CreateUserErrorEventArgs.cs
- AssemblyBuilderData.cs
- UIAgentInitializationException.cs
- initElementDictionary.cs
- DesigntimeLicenseContext.cs
- DataFormats.cs
- PathTooLongException.cs
- StringConverter.cs
- WasNotInstalledException.cs
- SynchronizedDispatch.cs
- Mapping.cs
- MsmqAppDomainProtocolHandler.cs
- ObfuscateAssemblyAttribute.cs
- MetadataArtifactLoaderComposite.cs
- DataViewListener.cs
- SecureUICommand.cs
- PolicyManager.cs
- WindowInteropHelper.cs
- IsolatedStorageException.cs
- InvalidDataException.cs
- TextDecorations.cs
- ConnectionStringEditor.cs
- CodeConstructor.cs
- NumericUpDownAcceleration.cs
- CustomAttributeBuilder.cs
- EdmFunction.cs
- AddressingVersion.cs
- Label.cs
- ErrorHandlingAcceptor.cs
- X509ThumbprintKeyIdentifierClause.cs
- TreeNodeBinding.cs
- AsymmetricSignatureFormatter.cs
- WebPartTransformerAttribute.cs
- CodeLinePragma.cs
- LicenseProviderAttribute.cs