Share via


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

'Declaration
Public Structure QueryString _
    Implements IEquatable(Of QueryString)
'Usage
Dim instance As QueryString
public struct QueryString : IEquatable<QueryString>
public value class QueryString : IEquatable<QueryString>
[<SealedAttribute>]
type QueryString =  
    struct 
        interface IEquatable<QueryString>
    end
JScript suports the use of structures, but not the declaration of new ones.

The QueryString type exposes the following members.

Constructors

  Name Description
Public method QueryString(String) Initialize the query string with a given value. This value must be in escaped and delimited format without a leading '?' character.
Public method QueryString(String, String) Initialize a query string with a single given parameter name and value. The value is.

Top

Properties

  Name Description
Public property HasValue True if the query string is not empty.
Public property Value The unescaped query string without the leading '?' character.

Top

Methods

  Name Description
Public method Equals(Object) (Overrides ValueType.Equals(Object).)
Public method Equals(QueryString)
Public methodStatic member FromUriComponent(String) Returns a PathString given the path as it is escaped in the URI format. The string MUST NOT contain any value that is not a path.
Public methodStatic member FromUriComponent(Uri) Returns a PathString given the path as from a Uri object. Relative Uri objects are not supported.
Public method GetHashCode (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method 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().)
Public method 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.

Top

Operators

  Name Description
Public operatorStatic member Equality
Public operatorStatic member Inequality

Top

Fields

  Name Description
Public fieldStatic member Empty Represents the empty query string. This field is read-only.

Top

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

Reference

Microsoft.Owin Namespace