<div class="content" name="GetSerializedBuffer" uuid="7e79d51e-56ae-4a0e-9038-6d1230c54d72"><p>The GetSerializedBuffer method converts the given managed <a href="d8eaf696-8591-48a2-9aac-4880847e3632#gt_8bb43a65-7a8c-4585-a7ed-23044772f8ca" data-linktype="relative-path">object</a> to a
binary-formatted string representation that can be used to create a managed
object.</p><dl>
<dd>
<div><pre> HRESULT GetSerializedBuffer( 
   [out] BSTR *pBSTR
 );
  
</pre></div>
</dd></dl><p><b>pbSTR: </b>The value MUST contain a binary-formatted
string representation of the class record for the underlying managed object, as
specified in <a href="../ms-nrbf/75b9fe09-be15-475f-85b8-ae7b7558cfe5" data-linktype="relative-path">[MS-NRBF]</a>
section <a href="../ms-nrbf/c9bc3af3-5a0c-4b29-b517-1b493b51f7bb" data-linktype="relative-path">2.3</a>.
For more information on binary format mapping, see <a href="../ms-nrtp/3acb31b0-b873-4aaf-8503-9727ec40fbec" data-linktype="relative-path">[MS-NRTP]</a>
section <a href="../ms-nrtp/7e3db959-3a2a-4a84-8ec4-caf7a9e409de" data-linktype="relative-path">3.1.5.1</a>.</p><p><b>Return Values: </b>The method MUST return a
positive value or 0 to indicate successful completion or a negative value to
indicate failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000 ERROR_SUCCESS</td>
  <td>Success.</td>
 </tr></tbody></table>
</dd></dl><p><b>Exceptions Thrown:</b> No exceptions are thrown
from this method beyond those thrown by the underlying <a href="d8eaf696-8591-48a2-9aac-4880847e3632#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> protocol.</p></div>