# C1.C1Preview.C1MultiDocument.SetStorage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1MultiDocument_SetStorage_" data-uid="C1.C1Preview.C1MultiDocument.SetStorage*">SetStorage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1MultiDocument_SetStorage_" data-uid="C1.C1Preview.C1MultiDocument.SetStorage*"></a>
<h4 id="C1_C1Preview_C1MultiDocument_SetStorage_C1_C1Preview_StorageType_System_String_" data-uid="C1.C1Preview.C1MultiDocument.SetStorage(C1.C1Preview.StorageType,System.String)">SetStorage(StorageType, string)</h4>
<div class="markdown level1 summary"><p>Sets the temporary storage type used by the current multi-document.
Note that document items are actually moved from old storage to new by this method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetStorage(StorageType storageType, string storagePath)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetStorage(storageType As StorageType, storagePath As String)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.StorageType.html">StorageType</a></td>
      <td><span class="parametername">storageType</span></td>
      <td><p>The new storage type to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">storagePath</span></td>
      <td><p>The temporary directory to use if <code class="paramref">storageType</code> is <b>StorageType.Disk</b>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1MultiDocument_SetStorage_" data-uid="C1.C1Preview.C1MultiDocument.SetStorage*"></a>
<h4 id="C1_C1Preview_C1MultiDocument_SetStorage_C1_C1Preview_StorageType_" data-uid="C1.C1Preview.C1MultiDocument.SetStorage(C1.C1Preview.StorageType)">SetStorage(StorageType)</h4>
<div class="markdown level1 summary"><p>Sets the temporary storage type used by the current multi-document.
Note that document items are actually moved from old storage to new by this method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetStorage(StorageType storageType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetStorage(storageType As StorageType)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.StorageType.html">StorageType</a></td>
      <td><span class="parametername">storageType</span></td>
      <td><p>The new storage type to use.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
