# C1.Util.DX.Storage.PropertyBag

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Storage_PropertyBag" data-uid="C1.Util.DX.Storage.PropertyBag" class="text-break">PropertyBag Class
</h1>
  <div class="markdown level0 summary"><p>Implementation of OLE IPropertyBag2.</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"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><span class="xref">PropertyBag</span></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.BitmapEncoderOptions.html">BitmapEncoderOptions</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Storage.html">C1.Util.DX.Storage</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.4.8.dll</h6>
  <h5 id="C1_Util_DX_Storage_PropertyBag_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PropertyBag : ComObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PropertyBag
    Inherits ComObject
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <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_Util_DX_Storage_PropertyBag__ctor_System_IntPtr_" data-uid="C1.Util.DX.Storage.PropertyBag.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.-ctor.html#C1_Util_DX_Storage_PropertyBag__ctor_System_IntPtr_">PropertyBag(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Storage.PropertyBag.html">PropertyBag</a> class.</p>
</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_Util_DX_Storage_PropertyBag_Count" data-uid="C1.Util.DX.Storage.PropertyBag.Count">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.Count.html#C1_Util_DX_Storage_PropertyBag_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_PropertyBag_Keys" data-uid="C1.Util.DX.Storage.PropertyBag.Keys">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.Keys.html#C1_Util_DX_Storage_PropertyBag_Keys">Keys</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the keys.</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_Util_DX_Storage_PropertyBag_Get_System_String_" data-uid="C1.Util.DX.Storage.PropertyBag.Get(System.String)">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.Get.html#C1_Util_DX_Storage_PropertyBag_Get_System_String_">Get(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value of the property with this name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_PropertyBag_Get__2_C1_Util_DX_Storage_PropertyBagKey___0___1__" data-uid="C1.Util.DX.Storage.PropertyBag.Get``2(C1.Util.DX.Storage.PropertyBagKey{``0,``1})">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.Get.html#C1_Util_DX_Storage_PropertyBag_Get__2_C1_Util_DX_Storage_PropertyBagKey___0___1__">Get&lt;T1, T2&gt;(PropertyBagKey&lt;T1, T2&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value of the property by using a <a class="xref" href="C1.Util.DX.Storage.PropertyBagKey-2.html">PropertyBagKey&lt;T1, T2&gt;</a></p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_PropertyBag_NativePointerUpdated_System_IntPtr_" data-uid="C1.Util.DX.Storage.PropertyBag.NativePointerUpdated(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.NativePointerUpdated.html#C1_Util_DX_Storage_PropertyBag_NativePointerUpdated_System_IntPtr_">NativePointerUpdated(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Method called when the <a class="xref" href="C1.Util.DX.CppObject.NativePointer.html#C1_Util_DX_CppObject_NativePointer">NativePointer</a> is updated.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_PropertyBag_Set_System_String_System_Object_" data-uid="C1.Util.DX.Storage.PropertyBag.Set(System.String,System.Object)">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.Set.html#C1_Util_DX_Storage_PropertyBag_Set_System_String_System_Object_">Set(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value of the property with this name</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_PropertyBag_Set__2_C1_Util_DX_Storage_PropertyBagKey___0___1____0_" data-uid="C1.Util.DX.Storage.PropertyBag.Set``2(C1.Util.DX.Storage.PropertyBagKey{``0,``1},``0)">
          <a class="xref" href="C1.Util.DX.Storage.PropertyBag.Set.html#C1_Util_DX_Storage_PropertyBag_Set__2_C1_Util_DX_Storage_PropertyBagKey___0___1____0_">Set&lt;T1, T2&gt;(PropertyBagKey&lt;T1, T2&gt;, T1)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value of the property by using a <a class="xref" href="C1.Util.DX.Storage.PropertyBagKey-2.html">PropertyBagKey&lt;T1, T2&gt;</a></p>
</td>
      </tr>
    </tbody>
  </table>

</div>
