--- description: "Learn more about: _com_error::operator =" title: "_com_error::operator =" ms.date: "11/04/2016" f1_keywords: ["_com_error::operator="] helpviewer_keywords: ["_com_error [C++]"] ms.assetid: b9cc4094-d055-450c-b45a-0a95317488f8 --- # _com_error::operator = **Microsoft Specific** Assigns an existing `_com_error` object to another. ## Syntax ``` _com_error& operator = ( const _com_error& that ) throw ( ); ``` #### Parameters *that*
A `_com_error` object. **END Microsoft Specific** ## See also [_com_error Class](../cpp/com-error-class.md)