GXDN: Gurux Developer Network
Close Method
NamespacesGurux.GPRSGXGPRSClose()()()
Closes the active connection.
Examples
CopyC#
                /// <summary>
/// Closes GPRS connection.
/// </summary>
/// <param name="eventSender"></param>
/// <param name="eventArgs"></param>
private void CloseBtn_Click(System.Object eventSender, System.EventArgs eventArgs)
{
    try
    {
        gxgprs1.Close();    
    }
     catch (Exception Ex)
    {
        MessageBox.Show(Ex.Message);
    }
}
CopyVB.NET
                ''' <summary>
''' Close GPRS connection.
''' </summary>
Private Sub CloseBtn_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CloseBtn.Click
    Try
        Gxgprs1.Close()
    Catch Ex As Exception
        MessageBox.Show(Ex.Message)
    End Try
End Sub
CopyVBScript
                'Close GPRS connection
Private Sub CloseBtn_Click()
On Error GoTo GXErr
    GXGPRS1.Close
    Exit Sub
GXErr:
    MsgBox Err.Description
End Sub
See Also

Assembly: Gurux.GPRS (Module: Gurux.GPRS) Version: 5.0.0.1