StreamSocketInformation Class
提供 StreamSocket 对象上的套接字信息。
语法
特性
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- VersionAttribute(NTDDI_WIN8)
成员
StreamSocketInformation类 具有以下类型的成员:
方法
The StreamSocketInformation 类 继承以下内容中的方法 Object 类 (C#/VB/C++).
属性
该 StreamSocketInformation类 具有以下属性。
| 属性 | 访问类型 | 描述 |
|---|---|---|
| 只读 | Gets bandwidth information for network data transfer on a StreamSocket object. | |
| 只读 | Gets the local IP address associated with a StreamSocket object. | |
| 只读 | Get the TCP port number associated with a StreamSocket. | |
| 只读 | Gets the protection level that represents the integrity and encryption set on a StreamSocket object. | |
| 只读 | Get the IP address or hostname of the remote network destination associated with a StreamSocket object. | |
| 只读 | Get the hostname or IP address of the remote network destination associated with a StreamSocket object. | |
| 只读 | Get the TCP port number or service name of the remote network destination associated with a StreamSocket object. | |
| 只读 | Get the service name or TCP port number of the remote network destination associated with a StreamSocket object. | |
| 只读 | Gets round trip time information for a StreamSocket object. | |
| 只读 | 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 |
|
命名空间 |
|
|
元数据 |
|
|
DLL |
|
|
Capabilities |
|
另请参阅
- 其他资源
- 如何使用高级套接字控件(使用 JavaScript 和 HTML 的 Windows Store 应用程序)
- 如何使用高级套接字控件(使用 C#/VB/C++ 和 XAML 的 Windows Store 应用程序)
- 引用
- Object
- StreamSocket
- StreamSocket.Information