共用方式為


IPrincipal.Equals(Object) Method

Definition

Compares this principal to the specified object.

[Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "GetEquals_Ljava_lang_Object_Handler:Java.Security.IPrincipalInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Equals (Java.Lang.Object? another);
[<Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "GetEquals_Ljava_lang_Object_Handler:Java.Security.IPrincipalInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Equals : Java.Lang.Object -> bool

Parameters

another
Object

principal to compare with.

Returns

true if the principal passed in is the same as that encapsulated by this principal, and false otherwise.

Attributes

Remarks

Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.

Java documentation for java.security.Principal.equals(java.lang.Object).

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