KeyAttributePair<T>.Inequality 运算符
确定是否将指定的 KeyAttributePair<T> 实例视为不相等。
命名空间: Microsoft.Windows.Design.PropertyEditing
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Shared Operator <> ( _
pair1 As KeyAttributePair(Of T), _
pair2 As KeyAttributePair(Of T) _
) As Boolean
public static bool operator !=(
KeyAttributePair<T> pair1,
KeyAttributePair<T> pair2
)
public:
static bool operator !=(
KeyAttributePair<T> pair1,
KeyAttributePair<T> pair2
)
static let inline (<>)
pair1:KeyAttributePair<'T> *
pair2:KeyAttributePair<'T> : bool
JScript 不支持重载运算符。
参数
- pair1
类型:Microsoft.Windows.Design.PropertyEditing.KeyAttributePair<T>
要比较的第一个 KeyAttributePair<T>。
- pair2
类型:Microsoft.Windows.Design.PropertyEditing.KeyAttributePair<T>
要比较的第二个 KeyAttributePair<T>。
返回值
类型:System.Boolean
如果 first 不等于 second,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间