CodeAccessPermission.Equals(Object) 方法

定义

确定指定的 CodeAccessPermission 对象是否等于当前的 CodeAccessPermissionDetermines whether the specified CodeAccessPermission object is equal to the current CodeAccessPermission.

public:
 override bool Equals(System::Object ^ obj);
[System.Runtime.InteropServices.ComVisible(false)]
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

要与当前的 CodeAccessPermission 比较的 CodeAccessPermission 对象。The CodeAccessPermission object to compare with the current CodeAccessPermission.

返回

如果指定的 CodeAccessPermission 对象等于当前的 CodeAccessPermission,则为 true;否则为 falsetrue if the specified CodeAccessPermission object is equal to the current CodeAccessPermission; otherwise, false.

属性

注解

有关详细信息,请参阅 EqualsFor more information, see Equals.

适用于