<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.compersisthelper.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'compersisthelper.savetostream.php',
    1 => 'COMPersistHelper::SaveToStream',
    2 => 'Save object to stream',
  ),
  'up' => 
  array (
    0 => 'class.compersisthelper.php',
    1 => 'COMPersistHelper',
  ),
  'prev' => 
  array (
    0 => 'compersisthelper.savetofile.php',
    1 => 'COMPersistHelper::SaveToFile',
  ),
  'next' => 
  array (
    0 => 'class.com-exception.php',
    1 => 'com_exception',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/com/compersisthelper/savetostream.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="compersisthelper.savetostream" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">COMPersistHelper::SaveToStream</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">COMPersistHelper::SaveToStream</span> &mdash; <span class="dc-title">Save object to stream</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-compersisthelper.savetostream-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>COMPersistHelper::SaveToStream</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$stream</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Saves an object to the specified stream.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-compersisthelper.savetostream-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">stream</code></dt>
    <dd>
     <span class="simpara">
      The stream <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> to which to save the object.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-compersisthelper.savetostream-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>， 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-compersisthelper.savetostream-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   A <span class="classname"><a href="class.com-exception.php" class="classname">com_exception</a></span> is thrown if the associated object does neither
   implement the <abbr>COM</abbr> interface <span class="interfacename"><strong class="interfacename">IPersistStream</strong></span>
   nor <span class="interfacename"><strong class="interfacename">IPersistStreamInit</strong></span>, or when calling the
   <span class="methodname"><strong>IPersistStream::Save()</strong></span> method failed.
  </p>
 </div>


</div><?php manual_footer($setup); ?>