• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • CaseHandlingUriBuilder
      • CaseHandlingUriBuilder.CaseHandling
      • ExifOrientationUtilities
      • FormattedImage
      • FormatUtilities
      • HMACUtilities
      • ImageCacheMetadata
      • ImageMetadata
    • SixLabors.ImageSharp.Web.Caching
      • ICacheHash
      • ICacheKey
      • IImageCache
      • LegacyV1CacheKey
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
      • SHA256CacheHash
      • UriAbsoluteCacheKey
      • UriAbsoluteLowerInvariantCacheKey
      • UriRelativeCacheKey
      • UriRelativeLowerInvariantCacheKey
    • SixLabors.ImageSharp.Web.Commands
      • CommandCollection
      • CommandCollectionExtensions
      • CommandParser
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ArrayConverter<T>
      • ColorConverter
      • EnumConverter
      • ICommandConverter
      • ICommandConverter<T>
      • IntegralNumberConverter<T>
      • ListConverter<T>
      • SimpleCommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • AutoOrientWebProcessor
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • QualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • FileProviderImageProvider
      • IImageProvider
      • PhysicalFileSystemProvider
      • PhysicalFileSystemProviderOptions
      • ProcessingBehavior
      • WebRootImageProvider
    • SixLabors.ImageSharp.Web.Resolvers
      • FileProviderImageResolver
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>

    Class CommandCollection

    Represents an ordered collection of processing commands.

    Inheritance
    Object
    Collection<KeyValuePair<String, String>>
    KeyedCollection<String, KeyValuePair<String, String>>
    CommandCollection
    Implements
    IList<KeyValuePair<String, String>>
    ICollection<KeyValuePair<String, String>>
    IReadOnlyList<KeyValuePair<String, String>>
    IReadOnlyCollection<KeyValuePair<String, String>>
    IEnumerable<KeyValuePair<String, String>>
    IList
    ICollection
    IEnumerable
    Inherited Members
    KeyedCollection<String, KeyValuePair<String, String>>.ChangeItemKey(KeyValuePair<String, String>, String)
    KeyedCollection<String, KeyValuePair<String, String>>.ClearItems()
    KeyedCollection<String, KeyValuePair<String, String>>.Contains(String)
    KeyedCollection<String, KeyValuePair<String, String>>.GetKeyForItem(KeyValuePair<String, String>)
    KeyedCollection<String, KeyValuePair<String, String>>.InsertItem(Int32, KeyValuePair<String, String>)
    KeyedCollection<String, KeyValuePair<String, String>>.Remove(String)
    KeyedCollection<String, KeyValuePair<String, String>>.RemoveItem(Int32)
    KeyedCollection<String, KeyValuePair<String, String>>.SetItem(Int32, KeyValuePair<String, String>)
    KeyedCollection<String, KeyValuePair<String, String>>.TryGetValue(String, KeyValuePair<String, String>)
    KeyedCollection<String, KeyValuePair<String, String>>.Comparer
    KeyedCollection<String, KeyValuePair<String, String>>.Dictionary
    KeyedCollection<String, KeyValuePair<String, String>>.Item[String]
    System.Collections.ObjectModel.Collection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.System.Collections.IList.get_Item(System.Int32)
    System.Collections.ObjectModel.Collection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.System.Collections.IList.set_Item(System.Int32, System.Object)
    Collection<KeyValuePair<String, String>>.Add(KeyValuePair<String, String>)
    Collection<KeyValuePair<String, String>>.Clear()
    Collection<KeyValuePair<String, String>>.ClearItems()
    Collection<KeyValuePair<String, String>>.Contains(KeyValuePair<String, String>)
    Collection<KeyValuePair<String, String>>.CopyTo(KeyValuePair<String, String>[], Int32)
    Collection<KeyValuePair<String, String>>.GetEnumerator()
    Collection<KeyValuePair<String, String>>.IndexOf(KeyValuePair<String, String>)
    Collection<KeyValuePair<String, String>>.Insert(Int32, KeyValuePair<String, String>)
    Collection<KeyValuePair<String, String>>.InsertItem(Int32, KeyValuePair<String, String>)
    Collection<KeyValuePair<String, String>>.Remove(KeyValuePair<String, String>)
    Collection<KeyValuePair<String, String>>.RemoveAt(Int32)
    Collection<KeyValuePair<String, String>>.RemoveItem(Int32)
    Collection<KeyValuePair<String, String>>.SetItem(Int32, KeyValuePair<String, String>)
    Collection<KeyValuePair<String, String>>.ICollection.CopyTo(Array, Int32)
    Collection<KeyValuePair<String, String>>.IEnumerable.GetEnumerator()
    Collection<KeyValuePair<String, String>>.IList.Add(Object)
    Collection<KeyValuePair<String, String>>.IList.Contains(Object)
    Collection<KeyValuePair<String, String>>.IList.IndexOf(Object)
    Collection<KeyValuePair<String, String>>.IList.Insert(Int32, Object)
    Collection<KeyValuePair<String, String>>.IList.Remove(Object)
    Collection<KeyValuePair<String, String>>.Count
    Collection<KeyValuePair<String, String>>.Item[Int32]
    Collection<KeyValuePair<String, String>>.Items
    Collection<KeyValuePair<String, String>>.ICollection<KeyValuePair<String, String>>.IsReadOnly
    Collection<KeyValuePair<String, String>>.ICollection.IsSynchronized
    Collection<KeyValuePair<String, String>>.ICollection.SyncRoot
    Collection<KeyValuePair<String, String>>.IList.IsFixedSize
    Collection<KeyValuePair<String, String>>.IList.IsReadOnly
    Collection<KeyValuePair<String, String>>.IList.Item[Int32]
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.ImageSharp.Web.Commands
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public sealed class CommandCollection : KeyedCollection<string, KeyValuePair<string, string>>, IList<KeyValuePair<string, string>>, ICollection<KeyValuePair<string, string>>, IReadOnlyList<KeyValuePair<string, string>>, IReadOnlyCollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IList, ICollection, IEnumerable

    Constructors

    | Improve this Doc View Source

    CommandCollection()

    Initializes a new instance of the CommandCollection class.

    Declaration
    public CommandCollection()

    Properties

    | Improve this Doc View Source

    Item[String]

    Gets or sets the value associated with the specified key.

    Declaration
    public string this[string key] { get; set; }
    Parameters
    Type Name Description
    String key

    The key of the value to get or set.

    Property Value
    Type Description
    String

    The value associated with the specified key. If the specified key is not found, a get operation throws a KeyNotFoundException, and a set operation creates a new element with the specified key.

    Exceptions
    Type Condition
    ArgumentNullException

    key is null.

    KeyNotFoundException

    An element with the specified key does not exist in the collection.

    | Improve this Doc View Source

    Keys

    Gets an IEnumerable<T> representing the keys of the collection.

    Declaration
    public IEnumerable<string> Keys { get; }
    Property Value
    Type Description
    IEnumerable<String>

    Methods

    | Improve this Doc View Source

    Add(String, String)

    Adds an element with the provided key and value to the CommandCollection.

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

    The String to use as the key of the element to add.

    String value

    The String to use as the value of the element to add.

    Exceptions
    Type Condition
    ArgumentNullException

    key is null.

    | Improve this Doc View Source

    FindIndex(Predicate<String>)

    Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire CommandCollection.

    Declaration
    public int FindIndex(Predicate<string> match)
    Parameters
    Type Name Description
    Predicate<String> match

    The Predicate<T> delegate that defines the conditions of the element to search for.

    Returns
    Type Description
    Int32

    The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, -1.

    Exceptions
    Type Condition
    ArgumentNullException

    match is null.

    | Improve this Doc View Source

    GetKeyForItem(KeyValuePair<String, String>)

    Declaration
    protected override string GetKeyForItem(KeyValuePair<string, string> item)
    Parameters
    Type Name Description
    KeyValuePair<String, String> item
    Returns
    Type Description
    String
    Overrides
    System.Collections.ObjectModel.KeyedCollection<System.String, System.Collections.Generic.KeyValuePair<System.String, System.String>>.GetKeyForItem(System.Collections.Generic.KeyValuePair<System.String, System.String>)
    | Improve this Doc View Source

    IndexOf(String)

    Searches for the specified key and returns the zero-based index of the first occurrence within the entire CommandCollection.

    Declaration
    public int IndexOf(string key)
    Parameters
    Type Name Description
    String key

    The key to locate in the CommandCollection.

    Returns
    Type Description
    Int32

    The zero-based index of the first occurrence of key within the entire CommandCollection, if found; otherwise, -1.

    | Improve this Doc View Source

    Insert(Int32, String, String)

    Inserts an element into the CommandCollection at the specified index.

    Declaration
    public void Insert(int index, string key, string value)
    Parameters
    Type Name Description
    Int32 index

    The zero-based index at which item should be inserted.

    String key

    The String to use as the key of the element to insert.

    String value

    The String to use as the value of the element to insert.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    index is less than zero. -or- index is greater than CommandCollection.Count.

    | Improve this Doc View Source

    TryGetValue(String, out String)

    Gets the value associated with the specified key.

    Declaration
    public bool TryGetValue(string key, out string value)
    Parameters
    Type Name Description
    String key

    The key whose value to get.

    String value

    When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

    Returns
    Type Description
    Boolean

    true if the object that implements CommandCollection contains an element with the specified key; otherwise, false.

    Exceptions
    Type Condition
    ArgumentNullException

    key is null.

    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

    Extension Methods

    CommandCollectionExtensions.GetValueOrDefault(CommandCollection, String)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX