Class QueryParamCollection
Implements
System.Collections.Generic.IList<NameValuePair>
System.Collections.Generic.ICollection<NameValuePair>
System.Collections.Generic.IReadOnlyList<NameValuePair>
System.Collections.Generic.IReadOnlyCollection<NameValuePair>
System.Collections.Generic.IEnumerable<NameValuePair>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.get_Item(System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Add(MediaBrowser.Model.Dto.NameValuePair)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.AddRange(System.Collections.Generic.IEnumerable<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.AsReadOnly()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.BinarySearch(MediaBrowser.Model.Dto.NameValuePair)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.BinarySearch(MediaBrowser.Model.Dto.NameValuePair, System.Collections.Generic.IComparer<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.BinarySearch(System.Int32, System.Int32, MediaBrowser.Model.Dto.NameValuePair, System.Collections.Generic.IComparer<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Clear()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Contains(MediaBrowser.Model.Dto.NameValuePair)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.ConvertAll<TOutput>(System.Converter<MediaBrowser.Model.Dto.NameValuePair, TOutput>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.CopyTo(MediaBrowser.Model.Dto.NameValuePair[])
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.CopyTo(MediaBrowser.Model.Dto.NameValuePair[], System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.CopyTo(System.Int32, MediaBrowser.Model.Dto.NameValuePair[], System.Int32, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Exists(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Find(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindAll(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindIndex(System.Int32, System.Int32, System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindIndex(System.Int32, System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindIndex(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindLast(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindLastIndex(System.Int32, System.Int32, System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindLastIndex(System.Int32, System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.FindLastIndex(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.ForEach(System.Action<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.GetEnumerator()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.GetRange(System.Int32, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.IndexOf(MediaBrowser.Model.Dto.NameValuePair)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.IndexOf(MediaBrowser.Model.Dto.NameValuePair, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.IndexOf(MediaBrowser.Model.Dto.NameValuePair, System.Int32, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Insert(System.Int32, MediaBrowser.Model.Dto.NameValuePair)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.LastIndexOf(MediaBrowser.Model.Dto.NameValuePair)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.LastIndexOf(MediaBrowser.Model.Dto.NameValuePair, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.LastIndexOf(MediaBrowser.Model.Dto.NameValuePair, System.Int32, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Remove(MediaBrowser.Model.Dto.NameValuePair)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.RemoveAll(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.RemoveAt(System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.RemoveRange(System.Int32, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Reverse()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Reverse(System.Int32, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Sort()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Sort(System.Collections.Generic.IComparer<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Sort(System.Comparison<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.Generic.IEnumerable<MediaBrowser.Model.Dto.NameValuePair>.GetEnumerator()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.Add(System.Object)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.Contains(System.Object)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.IndexOf(System.Object)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.Remove(System.Object)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.ToArray()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.TrimExcess()
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.TrueForAll(System.Predicate<MediaBrowser.Model.Dto.NameValuePair>)
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Capacity
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Count
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.Item[System.Int32]
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.Generic.ICollection<MediaBrowser.Model.Dto.NameValuePair>.IsReadOnly
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.IsFixedSize
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.IsReadOnly
System.Collections.Generic.List<MediaBrowser.Model.Dto.NameValuePair>.System.Collections.IList.Item[System.Int32]
Namespace: MediaBrowser.Model.Services
Assembly: MediaBrowser.Model.dll
Syntax
public class QueryParamCollection : List<NameValuePair>, IList<NameValuePair>, ICollection<NameValuePair>, IReadOnlyList<NameValuePair>, IReadOnlyCollection<NameValuePair>, IEnumerable<NameValuePair>, IList, ICollection, IEnumerable
Constructors
QueryParamCollection()
Declaration
public QueryParamCollection()
QueryParamCollection(IDictionary<String, String>)
Declaration
public QueryParamCollection(IDictionary<string, string> headers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | headers |
Properties
Item[String]
Gets or sets a query parameter value by name. A query may contain multiple values of the same name (i.e. "x=1&x=2"), in which case the value is an array, which works for both getting and setting.
Declaration
public string this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The query parameter name |
Property Value
Type | Description |
---|---|
System.String | The query parameter value or array of values |
Keys
Declaration
public string[] Keys { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Methods
Add(String, String)
Adds a new query parameter.
Declaration
public virtual void Add(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.String | value |
Get(Int32)
Declaration
public string Get(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
System.String |
Get(String)
Declaration
public string Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.String |
GetItems(String)
Declaration
public virtual List<NameValuePair> GetItems(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<NameValuePair> |
GetKey(Int32)
Declaration
public string GetKey(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
System.String |
GetValues(Int32)
Declaration
public virtual string[] GetValues(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
System.String[] |
GetValues(String)
Declaration
public virtual List<string> GetValues(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Remove(String)
Removes all parameters of the given name.
Declaration
public virtual int Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.Int32 | The number of parameters that were removed |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Set(String, String)
Declaration
public virtual void Set(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.String | value |
ToDictionary()
Declaration
public Dictionary<string, string> ToDictionary()
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable