共用方式為


_com_error::Description

Microsoft 特定的

呼叫 IErrorInfo::GetDescription 函式。

語法

_bstr_t Description() const;

傳回值

傳回 物件內IErrorInfo::GetDescription記錄之物件的結果。IErrorInfo_com_error 產生的 BSTR 會封裝在 _bstr_t 物件內。 IErrorInfo如果沒有記錄,則會傳回空_bstr_t的 。

備註

呼叫 函式, IErrorInfo::GetDescription 並擷 IErrorInfo 取 物件內記錄的 _com_error 。 呼叫 方法時 IErrorInfo::GetDescription ,會忽略任何失敗。

END Microsoft 特定的

另請參閱

_com_error 類別