ComponentPro UltimateSftp

      GetConnectionState Method

      See AlsoMembers Options: Show AllLanguage Filter: AllSend comments on this topic to ComponentPro
      Checks to see if the current connection is still active and returns error if any.

      Syntax

      public Exception GetConnectionState(
         out bool connected, 
         out int nativeErrorCode
      )

      Parameters

      connected
      Indicates whether the connection is still active.
      nativeErrorCode
      The output error code.

      Return Value

      The exception object if encounters any error.

      Framework

      .NET Compact Framework.NET Compact Framework

      Supported version: 2.0, 3.5, and 3.9
      Assembly: ComponentPro.Sftp.CF (in ComponentPro.Sftp.CF.dll)

      .NET Framework.NET Framework

      Supported version: 2.0, 3.0, 3.5, 4.0, 4.5.x, 4.6.x and later
      Assembly: ComponentPro.Sftp (in ComponentPro.Sftp.dll)

      Xamarin MacXamarin Mac

      Supported version: 2.0.x and later
      Assembly: ComponentPro.Sftp.Mac (in ComponentPro.Sftp.Mac.dll)

      See Also