信息
您所需的主题如下所示。但此主题未包含在此库中。

StreamSocketInformation Class

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

语法


public ref class StreamSocketInformation sealed 

特性

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

成员

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.

ServerCertificate

只读Gets the certificate from the server when making an SSL connection with a StreamSocket.

ServerCertificateErrors

只读Gets the list of errors that occurred making an SSL connection with a StreamSocket.

ServerCertificateErrorSeverity

只读Gets the category of an error that occurred making an SSL connection with a StreamSocket.

ServerIntermediateCertificates

只读Gets the intermediate certificates sent by the server during SSL negotiation when making an SSL connection with a StreamSocket.

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

 

 

显示: