StreamSocketListenerInformation Class

Definition

Provides socket information on a StreamSocketListener object.

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
Inheritance
Object Platform::Object IInspectable StreamSocketListenerInformation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
ID_CAP_NETWORKING [Windows Phone]

Remarks

The StreamSocketListenerInformation class retrieves information on a StreamSocketListener and can be called any time after the StreamSocketListener has been created.

A StreamSocketListenerInformation object is automatically created with the parent StreamSocketListener object. The StreamSocketListener.Information property provides access to the associated StreamSocketListenerControl object.

Properties

LocalPort

Get the local TCP port number associated with a StreamSocketListener object.

Applies to

See also