IpcChannel.StartListening Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Instructs the current channel to start 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 StartListening(
	object data


Type: System.Object

Optional initialization information.

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.

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