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 | |
---|---|---|
QueryString(String) | Initialize the query string with a given value. This value must be in escaped and delimited format without a leading '?' character. |
|
QueryString(String, String) | Initialize a query string with a single given parameter name and value. The value is |
Properties
Name | Description | |
---|---|---|
HasValue | True if the query string is not empty |
|
Value | The escaped query string without the leading '?' character |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Indicates whether the current instance is equal to the other instance.(Overrides ValueType.Equals(Object).) |
|
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.(Overrides ValueType.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
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().) |
|
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 | |
---|---|---|
Empty | Represents the empty query string. This field is read-only. |
Operators
Name | Description | |
---|---|---|
Equality(QueryString, QueryString) | Compares the two instances for equality. |
|
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
Return to top