語言

XamlType.Equality(XamlType, XamlType) 運算子

定義

判斷兩個指定 XamlType 物件的值是否相同。

public:
 static bool operator ==(System::Xaml::XamlType ^ xamlType1, System::Xaml::XamlType ^ xamlType2);
public static bool operator ==(System.Xaml.XamlType xamlType1, System.Xaml.XamlType xamlType2);
static member ( = ) : System.Xaml.XamlType * System.Xaml.XamlType -> bool
Public Shared Operator == (xamlType1 As XamlType, xamlType2 As XamlType) As Boolean

參數

xamlType1
XamlType

XamlType 或 null。

xamlType2
XamlType

XamlType 或 null。

傳回

true 若 的 xamlType1 值與 的 xamlType2值相同;否則, false。

適用於