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
- UniqueEventHelper.cs
- UICuesEvent.cs
- StopStoryboard.cs
- HttpHandlerActionCollection.cs
- TableItemPatternIdentifiers.cs
- ScrollEventArgs.cs
- ButtonColumn.cs
- QueryRewriter.cs
- TargetControlTypeAttribute.cs
- ConnectionStringsSection.cs
- WindowsStreamSecurityUpgradeProvider.cs
- ConversionContext.cs
- PickBranchDesigner.xaml.cs
- SettingsProviderCollection.cs
- IndexedGlyphRun.cs
- QuestionEventArgs.cs
- TextReader.cs
- CodeTypeDeclaration.cs
- RuleDefinitions.cs
- DiscoveryClientReferences.cs
- StreamSecurityUpgradeInitiator.cs
- ResetableIterator.cs
- COM2ComponentEditor.cs
- Pair.cs
- PrinterResolution.cs
- LeaseManager.cs
- DataSourceControl.cs
- ContentType.cs
- Point4DValueSerializer.cs
- xmlNames.cs
- StringCollectionEditor.cs
- ValidationHelper.cs
- TraceRecords.cs
- TdsParserSessionPool.cs
- SafeHandles.cs
- ToolStripGrip.cs
- ImageMetadata.cs
- HTMLTagNameToTypeMapper.cs
- SelectionWordBreaker.cs
- Brush.cs
- TranslateTransform.cs
- PrintingPermissionAttribute.cs
- ExtensionWindowHeader.cs
- NamedPermissionSet.cs
- PageThemeParser.cs
- OdbcFactory.cs
- DynamicDataManager.cs
- DesignTimeParseData.cs
- CodeIdentifiers.cs
- NetworkCredential.cs
- EDesignUtil.cs
- Model3D.cs
- _LocalDataStore.cs
- AnnotationHelper.cs
- IdentityValidationException.cs
- AutomationPatternInfo.cs
- AttachmentCollection.cs
- DbSourceParameterCollection.cs
- WebControl.cs
- UnionExpr.cs
- XmlSchemaType.cs
- ErrorHandler.cs
- safelink.cs
- XmlMembersMapping.cs
- FormView.cs
- IResourceProvider.cs
- EdmSchemaError.cs
- RichTextBox.cs
- DataGridViewColumnStateChangedEventArgs.cs
- VariableQuery.cs
- SchemaElementDecl.cs
- TimeSpan.cs
- WebPartDisplayModeCollection.cs
- SortKey.cs
- ProviderCollection.cs
- PointConverter.cs
- SignedXml.cs
- SecureConversationServiceCredential.cs
- ParenExpr.cs
- DeferredElementTreeState.cs
- ResourceAssociationType.cs
- XmlSiteMapProvider.cs
- Int32CollectionValueSerializer.cs
- EncryptedReference.cs
- DataGridViewBindingCompleteEventArgs.cs
- LinqTreeNodeEvaluator.cs
- XmlSchemaDocumentation.cs
- ObjectViewFactory.cs
- ExecutionScope.cs
- DbDataRecord.cs
- XmlBoundElement.cs
- ZoneIdentityPermission.cs
- FormViewModeEventArgs.cs
- FamilyMapCollection.cs
- QilDataSource.cs
- DetailsViewInsertedEventArgs.cs
- ToolStrip.cs
- HwndTarget.cs
- XmlNamespaceManager.cs
- TextDecorationCollectionConverter.cs