QueryString Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides correct handling for QueryString value when needed to reconstruct a request or redirect URI string
public struct QueryString : IEquatable<Microsoft.Owin.QueryString>
type QueryString = struct
Public Structure QueryString
Implements IEquatable(Of QueryString)
- Inheritance
-
QueryString
- Implements
Constructors
QueryString(String, String) |
Initialize a query string with a single given parameter name and value. The value is |
QueryString(String) |
Initialize the query string with a given value. This value must be in escaped and delimited format without a leading '?' character. |
Fields
Empty |
Represents the empty query string. This field is read-only. |
Properties
HasValue |
True if the query string is not empty |
Value |
The escaped query string without the leading '?' character |
Methods
Equals(Object) |
Indicates whether the current instance is equal to the other instance. |
Equals(QueryString) |
Indicates whether the current instance is equal to the other instance. |
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. |
FromUriComponent(Uri) |
Returns an QueryString given the query as from a Uri object. Relative Uri objects are not supported. |
GetHashCode() |
Returns the hash code for this instance. |
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. |
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. |
Operators
Equality(QueryString, QueryString) |
Compares the two instances for equality. |
Inequality(QueryString, QueryString) |
Compares the two instances for inequality. |