Editar

Compartilhar via


RoutedEventHandlerInfo.Equals Method

Definition

Determines whether objects are equivalent.

Overloads

Equals(Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines whether the specified object is equivalent to the current RoutedEventHandlerInfo.

Equals(RoutedEventHandlerInfo)

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines whether the specified RoutedEventHandlerInfo is equivalent to the current RoutedEventHandlerInfo.

Equals(Object)

Determines whether the specified object is equivalent to the current RoutedEventHandlerInfo.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The object to compare to the current RoutedEventHandlerInfo.

Returns

true if the specified object is equivalent to the current RoutedEventHandlerInfo; otherwise, false.

Applies to

Equals(RoutedEventHandlerInfo)

Determines whether the specified RoutedEventHandlerInfo is equivalent to the current RoutedEventHandlerInfo.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 bool Equals(System::Windows::RoutedEventHandlerInfo handlerInfo);
public bool Equals (System.Windows.RoutedEventHandlerInfo handlerInfo);
override this.Equals : System.Windows.RoutedEventHandlerInfo -> bool
Public Function Equals (handlerInfo As RoutedEventHandlerInfo) As Boolean

Parameters

handlerInfo
RoutedEventHandlerInfo

The RoutedEventHandlerInfo to compare to the current RoutedEventHandlerInfo.

Returns

true if the specified RoutedEventHandlerInfo is equivalent to the current RoutedEventHandlerInfo; otherwise, false.

Remarks

This implementation relies on value equivalence of the HandlerInvokeHandledEventsToo properties. The Handler property is a delegate reference. Therefore, equivalence implies a duplicate reference to the same handler.

Applies to