共用方式為


HString::Operator== 運算子

表示兩個參數是否相等。

inline bool operator==(
               const HString& lhs, 
               const HString& rhs) throw()

inline bool operator==(
                const HString& lhs, 
                const HStringReference& rhs) throw()

inline bool operator==(
                const HStringReference& lhs, 
                const HString& rhs) throw()

inline bool operator==(
                 const HSTRING& lhs, 
                 const HString& rhs) throw()

inline bool operator==(
                 const HString& lhs, 
                 const HSTRING& rhs) throw()

參數

  • lhs
    要比較的第一個參數。lhs 可以是 HString 或 HStringReference 物件或 HSTRING 控制代碼。

  • rhs
    要比較的第二個參數。rhs 可以是 HString 或 HStringReference 物件或 HSTRING 控制代碼。

傳回值

如果 lhs 和 rhs 參數相等,則為 true,否則為 false。

需求

標題: corewrappers.h

**命名空間:**Microsoft::WRL::Wrappers

請參閱

參考

HString 類別