CultureInfo.Equals(Object) 方法

定義

判斷指定物件是否與目前 CultureInfo 為相同的文化特性。Determines whether the specified object is the same culture as the current CultureInfo.

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

參數

value
Object

要與目前 CultureInfo 比較的物件。The object to compare with the current CultureInfo.

傳回

Boolean

如果 value 與目前 CultureInfo 為相同的文化特性,則為 true;否則為 falsetrue if value is the same culture as the current CultureInfo; otherwise, false.

備註

這個方法會覆寫 Object.EqualsThis method overrides Object.Equals.

如果兩個 CultureInfo 物件的 Name 和屬性相等,則視為相等 CompareInfoTwo CultureInfo objects are considered equal if their Name and CompareInfo properties are equal.

適用於

另請參閱