# C1.Win.Collections.ObjectModel.ObservableKeyValuePair-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2" data-uid="C1.Win.Collections.ObjectModel.ObservableKeyValuePair`2" class="text-break">ObservableKeyValuePair&lt;TKey, TValue&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines a key/value pair that can be set or retrieved.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ObservableKeyValuePair&lt;TKey, TValue&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Collections.ObjectModel.html">C1.Win.Collections.ObjectModel</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ObservableKeyValuePair&lt;TKey, TValue&gt; : INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ObservableKeyValuePair(Of TKey, TValue)
    Implements INotifyPropertyChanged</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TKey</span></td>
        <td><p>The type of the key.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TValue</span></td>
        <td><p>The type of the value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2__ctor" data-uid="C1.Win.Collections.ObjectModel.ObservableKeyValuePair`2.#ctor">
          <a class="xref" href="C1.Win.Collections.ObjectModel.ObservableKeyValuePair-2.-ctor.html#C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2__ctor">ObservableKeyValuePair()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_Key" data-uid="C1.Win.Collections.ObjectModel.ObservableKeyValuePair`2.Key">
          <a class="xref" href="C1.Win.Collections.ObjectModel.ObservableKeyValuePair-2.Key.html#C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_Key">Key</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the key in the key/value pair.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_Value" data-uid="C1.Win.Collections.ObjectModel.ObservableKeyValuePair`2.Value">
          <a class="xref" href="C1.Win.Collections.ObjectModel.ObservableKeyValuePair-2.Value.html#C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value in the key/value pair.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_OnPropertyChanged_System_String_" data-uid="C1.Win.Collections.ObjectModel.ObservableKeyValuePair`2.OnPropertyChanged(System.String)">
          <a class="xref" href="C1.Win.Collections.ObjectModel.ObservableKeyValuePair-2.OnPropertyChanged.html#C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_OnPropertyChanged_System_String_">OnPropertyChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Fires the <a class="xref" href="C1.Win.Collections.ObjectModel.ObservableKeyValuePair-2.PropertyChanged.html">PropertyChanged</a> event.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Collections_ObjectModel_ObservableKeyValuePair_2_PropertyChanged" data-uid="C1.Win.Collections.ObjectModel.ObservableKeyValuePair`2.PropertyChanged">
          <a class="xref" href="C1.Win.Collections.ObjectModel.ObservableKeyValuePair-2.PropertyChanged.html">PropertyChanged</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
