Show / Hide Table of Contents

    Class UriConverter

    This utility class is designed to make System.Uri related conversions easier to work with.

    Inheritance
    System.Object
    UriConverter
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public static class UriConverter

    Methods

    | Improve this Doc

    FromProtocolRelativeUri(String, UriScheme)

    Converts the specified value of a protocol-relative System.String to its equivalent System.Uri.

    Declaration
    public static Uri FromProtocolRelativeUri(string value, UriScheme protocol)
    Parameters
    Type Name Description
    System.String value

    The System.String to be converted.

    UriScheme protocol

    The desired protocol of the value to be converted.

    Returns
    Type Description
    System.Uri

    An System.Uri that is equivalent to value with the specified protocol as System.Uri.Scheme.

    | Improve this Doc

    FromProtocolRelativeUri(String, UriScheme, String)

    Converts the specified value of a protocol-relative System.String to its equivalent System.Uri.

    Declaration
    public static Uri FromProtocolRelativeUri(string value, UriScheme protocol, string relativeReference)
    Parameters
    Type Name Description
    System.String value

    The System.String to be converted.

    UriScheme protocol

    The desired protocol of the value to be converted.

    System.String relativeReference

    The relative reference that value must begin with. Default is NetworkPathReference.

    Returns
    Type Description
    System.Uri

    An System.Uri that is equivalent to value with the specified protocol as System.Uri.Scheme.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX