Xceed .NET Libraries Documentation
TryParseHostedFullName Method


Xceed.SSH.Client Assembly > Xceed.SSH.Client Namespace > SFtpSession Class : TryParseHostedFullName Method
A System.String that represents a hosted full name as computed by the ComputeHostedFullName Method.
A System.String that represents the host name part of the supplied hosted full name string.
A System.Int32 value that represents the port number part of the supplied hosted full name string.
A System.String that represents the path part of the supplied hosted full name string.
Attempts to parse a string produced by the ComputeHostedFullName Method that breaks down the information into individual components.
Syntax
'Declaration
 
Public Shared Function TryParseHostedFullName( _

   ByVal hostedFullName As String, _

   ByRef hostName As String, _

   ByRef port As Integer, _

   ByRef path As String _

) As Boolean
'Usage
 
Dim hostedFullName As String

Dim hostName As String

Dim port As Integer

Dim path As String

Dim value As Boolean

 

value = SFtpSession.TryParseHostedFullName(hostedFullName, hostName, port, path)
public static bool TryParseHostedFullName( 

   string hostedFullName,

   out string hostName,

   out int port,

   out string path

)

Parameters

hostedFullName
A System.String that represents a hosted full name as computed by the ComputeHostedFullName Method.
hostName
A System.String that represents the host name part of the supplied hosted full name string.
port
A System.Int32 value that represents the port number part of the supplied hosted full name string.
path
A System.String that represents the path part of the supplied hosted full name string.

Return Value

A System.Boolean value that indicates whether the supplied hostedFullName was successfully parsed or not.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SFtpSession Class
SFtpSession Members