Jaa


QueryString Structure

 

Provides correct handling for QueryString value when needed to reconstruct a request or redirect URI string

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

Syntax

public struct QueryString : IEquatable<QueryString>
public value struct QueryString : IEquatable<QueryString>
[<Sealed>]
type QueryString = 
    struct
        interface IEquatable<QueryString>
    end
Public Structure QueryString
    Implements IEquatable(Of QueryString)

Constructors

Name Description
System_CAPS_pubmethod QueryString(String)

Initialize the query string with a given value. This value must be in escaped and delimited format without a leading '?' character.

System_CAPS_pubmethod QueryString(String, String)

Initialize a query string with a single given parameter name and value. The value is

Properties

Name Description
System_CAPS_pubproperty HasValue

True if the query string is not empty

System_CAPS_pubproperty Value

The escaped query string without the leading '?' character

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Indicates whether the current instance is equal to the other instance.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethod Equals(QueryString)

Indicates whether the current instance is equal to the other instance.

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.

System_CAPS_pubmethod GetHashCode()

Returns the hash code for this instance.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

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 potentially dangerous are escaped.(Overrides ValueType.ToString().)

System_CAPS_pubmethod ToUriComponent()

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 potentially dangerous are escaped.

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static Empty

Represents the empty query string. This field is read-only.

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(QueryString, QueryString)

Compares the two instances for equality.

System_CAPS_puboperatorSystem_CAPS_static Inequality(QueryString, QueryString)

Compares the two instances for inequality.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin Namespace

Return to top