MercurialCommandHookDictionary Class

Summary

This class is used by MercurialPreCommandHook and MercurialPostCommandHook to hold the options to the Mercurial command.
Assembly
Mercurial.Net.dll
Namespace
Mercurial.Hooks
Interfaces
  • IDictionary<TKey, TValue>
  • ICollection<T>
  • IEnumerable<T>
  • IEnumerable
Base Types
graph TD Base0["MercurialCommandHookDataStructureBase"]-->Type click Base0 "/Cake.Hg/api/Mercurial.Hooks/MercurialCommandHookDataStructureBase" Base1["object"]-->Base0 Interface0["IDictionary<TKey, TValue>"]-.->Type Interface1["ICollection<T>"]-.->Type Interface2["IEnumerable<T>"]-.->Type Interface3["IEnumerable"]-.->Type Type["MercurialCommandHookDictionary"] class Type type-node

Syntax

public sealed class MercurialCommandHookDictionary : MercurialCommandHookDataStructureBase, 
    IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, 
    IEnumerable<KeyValuePair<string, object>>, IEnumerable

Attributes

Type Description
DefaultMemberAttribute

Constructors

Name Summary
MercurialCommandHookDictionary(string) Initializes a new instance of the MercurialCommandHookDictionary class.

Properties

Name Value Summary
Count int
Gets the number of elements contained in the MercurialCommandHookDictionary.
IsReadOnly bool
Gets a value indicating whether the MercurialCommandHookDictionary is read-only.
Keys ICollection<T>
Gets an System.Collections.Generic.ICollection`1 containing the keys of the MercurialCommandHookDictionary.
this[string] object
Gets or sets the element with the specified key.
Values ICollection<T>
Gets an ICollection<T> containing the values in the MercurialCommandHookDictionary.

Methods

Name Value Summary
Add(KeyValuePair<string, object>) void
Always throws System.NotSupportedException since this MercurialCommandHookDictionary is read-only.
Add(string, object) void
Always throws System.NotSupportedException since this MercurialCommandHookDictionary is read-only.
Clear() void
Always throws System.NotSupportedException since this MercurialCommandHookDictionary is read-only.
Contains(KeyValuePair<string, object>) bool
Determines whether the MercurialCommandHookDictionary contains a specific value.
ContainsKey(string) bool
Determines whether the MercurialCommandHookDictionary contains an element with the specified key.
CopyTo(KeyValuePair<string, object>[], int) void
Copies the elements of the MercurialCommandHookDictionary to an System.Array, starting at a particular System.Array index.
GetEnumerator() IEnumerator<T>
Returns an enumerator that iterates through the collection.
ParseValue(string, int) object
Parses the value at the given position and returns it.
Remove(KeyValuePair<string, object>) bool
Always throws System.NotSupportedException since this MercurialCommandHookDictionary is read-only.
Remove(string) bool
Always throws System.NotSupportedException since this MercurialCommandHookDictionary is read-only.
TryGetValue(string, object) bool
Gets the value associated with the specified key.