ContextLinkCollection.Equality 运算符

确定两个指定的 ContextLinkCollection 对象是否具有相同的值。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public Shared Operator = ( _
    leftHand As ContextLinkCollection, _
    rightHand As ContextLinkCollection _
) As Boolean
用法
Dim leftHand As ContextLinkCollection
Dim rightHand As ContextLinkCollection
Dim returnValue As Boolean

returnValue = (leftHand = rightHand)
public static bool operator ==(
    ContextLinkCollection leftHand,
    ContextLinkCollection rightHand
)
public:
static bool operator ==(
    ContextLinkCollection^ leftHand, 
    ContextLinkCollection^ rightHand
)
J# 不支持重载运算符。
JScript 不支持重载运算符。

参数

返回值

类型:System.Boolean
如果 leftHand 的值与 rightHand 的值相同,则为 true;否则为 false。

备注

如果在强制转换为对象时需要比较 ContextLinkCollection 对象的值(例如使用 IEnumerator 接口的情况),则应使用 Equals() 而非 == 运算符。

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ContextLinkCollection 类

ContextLinkCollection 成员

System.Windows.Ink 命名空间