<div class="content"><p>The ExportObjects method creates <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_982b7f8e-d516-4fd5-8d5e-1a836081ed85" data-linktype="relative-path">XML</a> for exporting objects.</p><dl>
<dd>
<div><pre> [id(1), helpstring(&#34;method ExportObjects&#34;)] HRESULT ExportObjects(
   [in] BSTR bstrObjectIds,
   [in] OBJECT_TYPE enumObjectType,
   [out] BSTR* pbstrObjectXml
 );
</pre></div>
</dd></dl><p><b>bstrObjectIds: </b>A string that identifies the
objects to be exported, in the format of an <a href="30dac73a-4cfa-4c16-bb7e-6194a09cd5a2" data-linktype="relative-path">ObjectIds</a> element (section
2.2.5.20).</p><p><b>enumObjectType: </b>An <a href="58277ad9-f953-4a97-a5f1-2fc927f24ea1" data-linktype="relative-path">OBJECT_TYPE</a> enumeration
value (section 2.2.3.6) that specifies the type of the objects to be exported.
This determines the format of XML object returned in the <i>pbstrObjectXml</i>
parameter, as follows.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Object type</p>
   </th>
   <th>
   <p>XML object</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>OBJECT_SELECTION_CRITERIA</p>
  </td>
  <td>
  <p><a href="b31d31ce-1030-43c6-abff-ea77edb2d5b7" data-linktype="relative-path">ProcessMatchingCriteria
  element (section 2.2.5.24)</a></p>
  </td>
 </tr><tr>
  <td>
  <p>OBJECT_POLICY</p>
  </td>
  <td>
  <p><a href="e6be8e0b-2ecb-4305-8f7c-ac378cc1900f" data-linktype="relative-path">Policy
  element (section 2.2.5.21)</a></p>
  </td>
 </tr><tr>
  <td>
  <p>OBJECT_SCHEDULE</p>
  </td>
  <td>
  <p><a href="c7483312-afa9-4c74-a428-65dd1b96bfa5" data-linktype="relative-path">Calendar
  element (section 2.2.5.7)</a> or <a href="d3c9e4d5-2267-473e-abcd-a8bfae7fc437" data-linktype="relative-path">Schedule
  element (section 2.2.5.26)</a></p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>pbstrObjectXml: </b>A pointer to a string that
returns the XML for the objects to be exported. The format of the XML depends
on the type of exported objects specified by the <i>enumObjectType</i>
parameter.<a id="Appendix_A_Target_35"></a><a aria-label="Product behavior note 35" href="1af5b971-a682-44a0-affe-c98947d5e7f7#Appendix_A_35" data-linktype="relative-path">&lt;35&gt;</a></p><p><b>Return Values: </b>This method returns 0x00000000
for success or a negative <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a>
value (in the following table or in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/705fb797-2175-4a90-b5a3-3918024b10b8" data-linktype="relative-path">2.1.1</a>)
if an error occurs.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>S_OK</p>
  </td>
  <td>
  <p>Operation successful.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x80070057</p>
  <p>E_INVALIDARG</p>
  </td>
  <td>
  <p>One or more arguments are invalid.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>Additional <a href="255d6a15-9358-41e6-9e70-e8bb09847dc8" data-linktype="relative-path">IResourceManager2</a>
interface methods are specified in section 3.2.4.2.</p><p>The server SHOULD process this method call as follows.</p><ul><li><p><span><span> 
</span></span>If one or more ObjectIds XML elements included in the <i>bstrObjectIds</i>
parameter cannot be found, they MUST be ignored, and the call MUST proceed for
other ObjectIds.</p>
</li><li><p><span><span> 
</span></span>If a <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_65daee12-445f-41c0-8456-f728063bef24" data-linktype="relative-path">PMC</a>
object is specified in the <i>enumObjectType</i> parameter, this method MUST
return an XML string containing the requested PMCs in the configuration. The
&#34;Type&#34; attributes of individual objects in the ObjectIds XML element
MUST be ignored.</p>
</li><li><p><span><span> 
</span></span>If a resource policy object is specified in the <i>enumObjectType</i>
parameter, this method MUST return an XML string containing the requested <a href="e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_6442eac9-3264-4d95-a435-fdc08e71603f" data-linktype="relative-path">RAPs</a> in the configuration.
The &#34;Type&#34; attributes of individual objects in the ObjectIds XML
element MUST be ignored.</p>
</li><li><p><span><span> 
</span></span>If a schedule object is specified in the <i>enumObjectType</i> parameter
and the &#34;Type&#34; attribute of the object requested in the ObjectIds XML
element is &#34;Calendar&#34;, this method MUST return an XML string
containing the requested calendar objects in the configuration.</p>
</li><li><p><span><span> 
</span></span>If a schedule object is specified in the <i>enumObjectType</i>
parameter and the &#34;Type&#34; attribute of the object requested in the
ObjectIds XML element is not &#34;Calendar&#34;, this method MUST return an
XML string containing the requested schedule objects in the configuration.</p>
</li></ul></div>