--- title: "_bstr_t::length" ms.date: "11/04/2016" f1_keywords: ["_bstr_t::length"] helpviewer_keywords: ["length method [C++]", "BSTR object [C++], length"] ms.assetid: 4f2e2c76-8894-4ef9-833f-4c6e796d0654 --- # _bstr_t::length **Microsoft Specific** Returns the number of characters in the `_bstr_t`, not including the terminating null, of the encapsulated `BSTR`. ## Syntax ``` unsigned int length ( ) const throw( ); ``` ## Remarks **END Microsoft Specific** ## See also [_bstr_t Class](../cpp/bstr-t-class.md)