StreamSocketListenerInformation クラス

定義

StreamSocketListener オブジェクトのソケット情報を提供します。

public ref class StreamSocketListenerInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class StreamSocketListenerInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class StreamSocketListenerInformation
Public NotInheritable Class StreamSocketListenerInformation
継承
Object Platform::Object IInspectable StreamSocketListenerInformation
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)
アプリの機能
ID_CAP_NETWORKING [Windows Phone]

注釈

StreamSocketListenerInformation クラスは StreamSocketListener に関する情報を取得し、 StreamSocketListener が作成された後いつでも呼び出すことができます。

StreamSocketListenerInformation オブジェクトは、親 StreamSocketListener オブジェクトを使用して自動的に作成されます。 StreamSocketListener.Information プロパティは、関連付けられた StreamSocketListenerControl オブジェクトへのアクセスを提供します。

プロパティ

LocalPort

StreamSocketListener オブジェクトに関連付けられているローカル TCP ポート番号を取得します。

適用対象

こちらもご覧ください