Deletes the communication channel.

Namespace:  Linxter.SDK
Assembly:  Linxter.SDK (in Linxter.SDK.dll) Version: 1.5.0.0 (1.5.0.0)

Syntax

C#
void DeleteOutgoing(
	Guid toProgramInstanceId
)
Visual Basic (Declaration)
Sub DeleteOutgoing ( _
	toProgramInstanceId As Guid _
)

Parameters

toProgramInstanceId
Type: System..::.Guid
The source program instance identity.

Examples

CopyC#
public void DeleteRequestIfExists(Guid channelToDelete)
{
    // set up Linxter
    ILinxterMessaging messaging = new LinxterSDK();
    ILinxterCommunicationChannel channel = messaging as ILinxterCommunicationChannel;

    // find the channel request ...
    if (channel.ChannelRequestExists(channelToDelete))
    {
        // ... and delete it
        channel.DeleteOutgoing(channelToDelete);
    }
}
CopyVB.NET
Public Sub DeleteRequestIfExists(ByVal channelToDelete As Guid)
    ' set up Linxter
    Dim messaging As ILinxterMessaging = New LinxterSDK()
    Dim channel As ILinxterCommunicationChannel = TryCast(messaging, ILinxterCommunicationChannel)

    ' find the channel request ...
    If channel.ChannelRequestExists(channelToDelete) Then
        ' ... and delete it
        channel.DeleteOutgoing(channelToDelete)
    End If
End Sub

See Also