此主题尚未评级 - 评价此主题

StreamSocketInformation Class

提供 StreamSocket 对象上的套接字信息。

语法


public sealed class StreamSocketInformation : Object

特性

DualApiPartitionAttribute()
MarshalingBehaviorAttribute(Agile)
VersionAttribute(NTDDI_WIN8)

成员

StreamSocketInformation类 具有以下类型的成员:

方法

The StreamSocketInformation 类 继承以下内容中的方法 Object 类 (C#/VB/C++).

属性

StreamSocketInformation类 具有以下属性。

属性访问类型描述

BandwidthStatistics

只读Gets bandwidth information for network data transfer on a StreamSocket object.

LocalAddress

只读Gets the local IP address associated with a StreamSocket object.

LocalPort

只读Get the TCP port number associated with a StreamSocket.

ProtectionLevel

只读Gets the protection level that represents the integrity and encryption set on a StreamSocket object.

RemoteAddress

只读Get the IP address or hostname of the remote network destination associated with a StreamSocket object.

RemoteHostName

只读Get the hostname or IP address of the remote network destination associated with a StreamSocket object.

RemotePort

只读Get the TCP port number or service name of the remote network destination associated with a StreamSocket object.

RemoteServiceName

只读Get the service name or TCP port number of the remote network destination associated with a StreamSocket object.

RoundTripTimeStatistics

只读Gets round trip time information for a StreamSocket object.

SessionKey

只读Get a byte array that represents the private shared secret exchanged by proximity devices.

 

备注

StreamSocketInformation 有关 StreamSocket 的信息。在 StreamSocket 创建后,此选件类可检索有关 StreamSocket 的信息并可随时调用。

StreamSocketInformation 对象随父 StreamSocket 对象自动创建。StreamSocket.Information 属性提供关联的 StreamSocketInformation 对象的访问。

要求

最低受支持的客户端

Windows 8 [Windows 应用商店应用, 桌面应用]

最低受支持的服务器

Windows Server 2012 [Windows 应用商店应用, 桌面应用]

最低受支持的电话

Windows Phone 8

命名空间

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

元数据

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

另请参阅

其他资源
如何使用高级套接字控件(使用 JavaScript 和 HTML 的 Windows Store 应用程序)
如何使用高级套接字控件(使用 C#/VB/C++ 和 XAML 的 Windows Store 应用程序)
引用
Object
StreamSocket
StreamSocket.Information

 

 

本文是否对您有所帮助?
(1500 个剩余字符)
© 2013 Microsoft. 版权所有。