Cookie.Equals(Object) 方法

定义

重写 Equals(Object) 方法。Overrides the Equals(Object) method.

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

参数

comparand
Object

Cookie 的引用。A reference to a Cookie.

返回

Boolean

如果 Cookie 等于 comparand,则返回 trueReturns true if the Cookie is equal to comparand. 两个 Cookie 实例相等的条件是它们的 NameValuePathDomainVersion 属性相等。Two Cookie instances are equal if their Name, Value, Path, Domain, and Version properties are equal. NameDomain 字符串比较不区分大小写。Name and Domain string comparisons are case-insensitive.

适用于

另请参阅