Редагувати

Поділитися через


TcpChannel.StartListening(Object) Method

Definition

Instructs the current channel to start listening for requests.

public:
 virtual void StartListening(System::Object ^ data);
public void StartListening (object data);
abstract member StartListening : obj -> unit
override this.StartListening : obj -> unit
Public Sub StartListening (data As Object)

Parameters

data
Object

Optional initialization information.

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.

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

The data parameter can be used to pass a specific initialization state to the channel. If you do not want to pass a specific state to the channel, set data to null.

Applies to