IpcChannel.StopListening Method (Object)

 

Instructs the current channel to stop listening for requests.

Namespace:   System.Runtime.Remoting.Channels.Ipc
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure, 
	Infrastructure = true)]
public void StopListening(
	object data
)

Parameters

data
Type: System.Object

Optional state information for the channel.

Use this method to stop listening on a channel. To restart listening, use the StartListening method.

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.

.NET Framework
Available since 2.0
Return to top
Show: