This documentation is archived and is not being maintained.

IrDAListener.Pending Method

Determines if a connection is pending.

Namespace:  System.Net.Sockets
Assembly:  System.Net.IrDA (in System.Net.IrDA.dll)

public bool Pending()

Return Value

Type: System.Boolean
true if there is a connection pending; otherwise, false.


The socket is invalid. Call the Start method.

The following code example shows whether a transfer from the remote device is pending. This code example is part of a larger example provided for the IrDAClient class.

// Show whether a transfer from 
// the remote device is pending. 
if (irListen.Pending() == true)
    statusBar1.Text = "Pending from "
        + irClient.RemoteMachineName;
    statusBar1.Text = "Not pending from "
        + irClient.RemoteMachineName;

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0