Xceed .NET Libraries Documentation
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.


In This Topic
    TryParseHostedFullName Method
    In This Topic
    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.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also