共用方式為


HStringReference::Operator!= 運算子

表示兩個參數是否不相等。

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

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

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

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

參數

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

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

傳回值

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

需求

標題: corewrappers.h

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

請參閱

參考

HStringReference 類別