Template parameter identifying the repeated capability class.
GetRepCapItemCount
Gets the total number of repeated capability instances of the specified class.
Syntax
Section titled “Syntax”template <typename RepCapClass>HRESULT GetRepCapItemCount(long* plCount);Parameters
Section titled “Parameters”RepCapClass
plCount
[out] Returns the total number of repeated capability instances of the class identified by the RepCapClass template parameter.
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Remarks
Section titled “Remarks”The signature of this function is specifically designed to match that of the standard Count method found on all repeated capabilities.
Example
Section titled “Example”The following example demonstrates use of the GetRepCapItemCount function.
HRESULT Acme4321::IAcme4321Channels_get_Count(long* val){ HRESULT hr = S_OK;
hr = GetRepCapItemCount<Acme4321Channel>(val);
return hr;}