<div class="content"><p> </p><p>The GetAllFuncCustData method retrieves all of the custom
data items associated with the specified method.</p><dl>
<dd>
<div><pre> HRESULT GetAllFuncCustData(
   [in] UINT index,
   [out] CUSTDATA* pCustData
 );
</pre></div>
</dd></dl><p><b>index: </b>MUST specify an ordinal position in the
method table and MUST be less than the value of the cFuncs field in the
TYPEATTR structure of the associated type, as specified in sections <span><a href="0ca10d08-61d2-4059-9109-7bbaf545715e" data-linktype="relative-path">2.2.44</a></span>
and <span><a href="b96292a8-c06e-4b9c-905e-129b95697ee4" data-linktype="relative-path">3.7.4.1</a></span>.</p><p><b>pCustData: </b>MUST be set to a CUSTDATA structure
that contains an array of custom data items, as specified in section <span><a href="232d5f12-4b88-43e3-a633-60fc157b1a5f" data-linktype="relative-path">2.2.49.5.1</a></span>.
The structure&#39;s <b>cCustData</b> field MUST be set to 0 and its <b>prgCustData</b>
field set to NULL, if there are no custom data items associated with the
method.</p><p><b>Return Values: </b>The method MUST return
information in an HRESULT data structure, defined in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>
section <span><a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a></span>.
The severity bit in the structure identifies the following conditions: </p><ul><li><p><span><span> 
</span></span>If the severity bit is set to 0, the method completed
successfully.</p>
</li><li><p><span><span> 
</span></span>If the severity bit is set to 1 and the entire HRESULT DWORD does
not match a value in the following table, a fatal failure occurred.</p>
</li><li><p><span><span> 
</span></span>If the severity bit is set to 1 and the entire HRESULT DWORD
matches a value in the following table, a failure occurred. </p>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x8002802B</p>
  <p>TYPE_E_ELEMENTNOTFOUND</p>
  </td>
  <td>
  <p>The value of <i>index</i> did not specify the ordinal
  position of an element in the data member table. See [MS-ERREF].</p>
  </td>
 </tr></tbody></table>
</li></ul><p> </p></div>