Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- JsonWriter.cs
- EventQueueState.cs
- RemotingService.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HttpHandlerAction.cs
- GlobalProxySelection.cs
- ProfileGroupSettingsCollection.cs
- NotifyParentPropertyAttribute.cs
- VisualTreeHelper.cs
- ValidationError.cs
- ExitEventArgs.cs
- ProgressBarHighlightConverter.cs
- ButtonBaseAutomationPeer.cs
- PropertyBuilder.cs
- RegexRunnerFactory.cs
- SecurityDescriptor.cs
- BookmarkEventArgs.cs
- SecurityVerifiedMessage.cs
- DbMetaDataColumnNames.cs
- StyleTypedPropertyAttribute.cs
- ProcessThread.cs
- BindingBase.cs
- PartialArray.cs
- RoleBoolean.cs
- ReadOnlyDictionary.cs
- AVElementHelper.cs
- OleDbPropertySetGuid.cs
- QuadraticEase.cs
- Duration.cs
- SerialStream.cs
- DataBindingExpressionBuilder.cs
- TemplatePagerField.cs
- VirtualizedItemProviderWrapper.cs
- Mapping.cs
- PaginationProgressEventArgs.cs
- GZipDecoder.cs
- DatatypeImplementation.cs
- RegexCapture.cs
- SyncMethodInvoker.cs
- Resources.Designer.cs
- BackgroundWorker.cs
- RoleGroup.cs
- ToolStripDropDownClosingEventArgs.cs
- CroppedBitmap.cs
- XmlCharacterData.cs
- FontStyles.cs
- SystemIcmpV4Statistics.cs
- StrokeNodeData.cs
- LocalizableAttribute.cs
- Polyline.cs
- TextDecoration.cs
- TextBox.cs
- SettingsSavedEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- LinkedResource.cs
- XmlSchemaComplexType.cs
- DataServiceHost.cs
- DataGridTextColumn.cs
- StrokeNodeOperations2.cs
- ContractBase.cs
- EndpointNotFoundException.cs
- Validator.cs
- Point3DAnimation.cs
- Send.cs
- NativeMethods.cs
- ProfessionalColorTable.cs
- dataSvcMapFileLoader.cs
- SessionStateSection.cs
- SessionViewState.cs
- SizeIndependentAnimationStorage.cs
- SourceExpressionException.cs
- TextModifierScope.cs
- SecurityToken.cs
- XPathItem.cs
- ProxyDataContractResolver.cs
- StringBuilder.cs
- NamedPermissionSet.cs
- Schema.cs
- httpserverutility.cs
- ControlFilterExpression.cs
- SetStoryboardSpeedRatio.cs
- StateWorkerRequest.cs
- Quad.cs
- HandleCollector.cs
- SchemaImporter.cs
- FontWeightConverter.cs
- GenerateHelper.cs
- WorkflowQueueInfo.cs
- SystemParameters.cs
- SourceFileBuildProvider.cs
- SafeFileHandle.cs
- Journaling.cs
- MenuItem.cs
- LookupNode.cs
- StackSpiller.Bindings.cs
- DependencyObjectType.cs
- SvcMapFileLoader.cs
- MarkerProperties.cs
- DataGridViewCellCollection.cs
- ConditionalAttribute.cs