IpcServerChannel.StartListening(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An object that specifies an initialization state, or null
, if you do not want to pass a specific state to the channel.
Implements
Exceptions
The specified listening port is not available.
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.
The data object 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, pass null
as the data
parameter value.