Show / Hide Table of Contents

Class UriQuery

Represents a query in a Uri.

Inheritance
System.Object
UriQuery
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>>
System.Collections.IEnumerable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.Infrastructure
Assembly: Sartorius.SAF.dll
Syntax
public class UriQuery : IEnumerable<KeyValuePair<string, string>>, IEnumerable
Remarks

This class can be used to parse a query string to access

Constructors

View Source

UriQuery()

Initializes a new instance of the UriQuery class.

Declaration
public UriQuery()
View Source

UriQuery(String)

Initializes a new instance of the UriQuery class with a query string.

Declaration
public UriQuery(string query)
Parameters
Type Name Description
System.String query

The query string.

Properties

View Source

Item[String]

Gets the System.String with the specified key.

Declaration
public string this[string key] { get; }
Parameters
Type Name Description
System.String key
Property Value
Type Description
System.String

The value for the specified key, or null if the query does not contain such a key.

Methods

View Source

Add(String, String)

Adds the specified key and value.

Declaration
public void Add(string key, string value)
Parameters
Type Name Description
System.String key

The name.

System.String value

The value.

View Source

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.String>>
View Source

ToString()

Returns a System.String that represents this instance as a query string.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents this instance.

Overrides
System.Object.ToString()

Explicit Interface Implementations

View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX