Compartilhar via


QueryString.FromUriComponent Method

 

Provides the query string escaped in a way which is correct for combining into the URI representation. A leading '?' character will be prepended unless the Value is null or empty. Characters which are potentally dangerous are escaped.

Namespace:   Microsoft.Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static FromUriComponent(String)

Returns an QueryString given the query as it is escaped in the URI format. The string MUST NOT contain any value that is not a query.

System_CAPS_pubmethodSystem_CAPS_static FromUriComponent(Uri)

Returns an QueryString given the query as from a Uri object. Relative Uri objects are not supported.

See Also

QueryString Structure
Microsoft.Owin Namespace

Return to top

QueryString.FromUriComponent Method (String)

Returns an QueryString given the query as it is escaped in the URI format. The string MUST NOT contain any value that is not a query.

Syntax

public static QueryString FromUriComponent(
    string uriComponent
)
public:
static QueryString FromUriComponent(
    String^ uriComponent
)
static member FromUriComponent : 
        uriComponent:string -> QueryString
Public Shared Function FromUriComponent (
    uriComponent As String
) As QueryString

Parameters

  • uriComponent
    Type: System.String

    The escaped query as it appears in the URI format.

Return Value

Type: Microsoft.Owin.QueryString

The resulting QueryString

Return to top

QueryString.FromUriComponent Method (Uri)

Returns an QueryString given the query as from a Uri object. Relative Uri objects are not supported.

Syntax

public static QueryString FromUriComponent(
    Uri uri
)
public:
static QueryString FromUriComponent(
    Uri^ uri
)
static member FromUriComponent : 
        uri:Uri -> QueryString
Public Shared Function FromUriComponent (
    uri As Uri
) As QueryString

Parameters

Return Value

Type: Microsoft.Owin.QueryString

The resulting QueryString

Return to top