IManagedPooledObj::SetHeld method (comsvcs.h)

Sets whether the managed object should go back into the COM+ object pool.

Syntax

HRESULT SetHeld(
  [in] BOOL m_bHeld
);

Parameters

[in] m_bHeld

Indicates whether the managed object should go back into the COM+ object pool.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Requirements

Requirement Value
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IManagedPooledObj