Sdílet prostřednictvím


ContextNode.Equality Operator

Determines whether two specified ContextNode objects have the same value.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    leftHand As ContextNode, _
    rightHand As ContextNode _
) As Boolean
'Usage
Dim leftHand As ContextNode 
Dim rightHand As ContextNode 
Dim returnValue As Boolean 

returnValue = (leftHand = rightHand)
public static bool operator ==(
    ContextNode leftHand,
    ContextNode rightHand
)
public:
static bool operator ==(
    ContextNode^ leftHand, 
    ContextNode^ rightHand
)
JScript does not support overloaded operators.

Parameters

Return Value

Type: System.Boolean
true if the value of leftHand is the same as the value of rightHand; otherwise, false.

Remarks

In situations where ContextNode objects need to be compared by value while cast to objects (such as when using the IEnumerator interface), Object.Equals should be used instead of this == operator.

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextNode Class

ContextNode Members

Microsoft.Ink Namespace