共用方式為


NameAttribute.Equals(Object) Method

Definition

Returns a value indicating whether the value of the current object instance is equal to a specified object.

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

Current value of the property Name to test for equality.

Returns

Returns true if value equals the value of the current instance; otherwise returns false.

Applies to