HttpServerChannel.StartListening(Object) Method

Definition

Instructs the current channel to start listening for requests.

public void StartListening (object data);

Parameters

data
Object

Should always be null for HttpChannel.

Implements

Remarks

It is not necessary to call this method to begin listening on a newly initialized channel.

Use this method to restart listening on a channel after the StopListening method has been called to stop listening on the channel.

If your channel uses a dynamically assigned port number, your port number might change when you restart listening.

Applies to

מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1