Dil

SocketPermission.Equals(Object) Method

Definition

Checks two SocketPermission objects for equality.

[Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "")]
public override bool Equals(Java.Lang.Object? other);
[<Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "")>]
override this.Equals : Java.Lang.Object -> bool

Parameters

other
Object

Returns

true if obj is a SocketPermission, and has the same hostname, port range, and actions as this SocketPermission object. However, port range will be ignored in the comparison if obj only contains the action, 'resolve'.

Attributes

Remarks

Checks two SocketPermission objects for equality.

Java reference for java.net.SocketPermission.equals.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to