Dart.Ftp Namespace > TcpBase Class : RemoteEndPoint Property |
Public ReadOnly Property RemoteEndPoint As IPEndPoint
Dim instance As TcpBase Dim value As IPEndPoint value = instance.RemoteEndPoint
public IPEndPoint RemoteEndPoint {get;}
public: property IPEndPoint^ RemoteEndPoint { IPEndPoint^ get(); }
private void myComponent_StateChanged(object sender, EventArgs e) { if (myComponent.State == ConnectionState.Closed) this.Text = "Not Connected"; else if (myComponent.State == ConnectionState.Connected) this.Text = "Connected to " + myComponent.RemoteEndPoint.ToString(); else this.Text = "Securely connected to " + myComponent.RemoteEndPoint.ToString(); }
Private Sub myComponent_StateChanged(ByVal sender As Object, ByVal e As EventArgs) If myComponent.State = ConnectionState.Closed Then Me.Text = "Not Connected" ElseIf myComponent.State = ConnectionState.Connected Then Me.Text = "Connected to " & myComponent.RemoteEndPoint.ToString() Else Me.Text = "Securely connected to " & myComponent.RemoteEndPoint.ToString() End If End Sub