次の方法で共有


Identity Constructors

Definition

Overloads

Identity()
Obsolete.

Constructor for serialization only.

Identity(String)
Obsolete.

Constructs an identity with the specified name and no scope.

Identity(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Identity(String, IdentityScope)
Obsolete.

Constructs an identity with the specified name and scope.

Identity()

Caution

deprecated

Constructor for serialization only.

[Android.Runtime.Register(".ctor", "()V", "")]
[System.Obsolete("deprecated")]
protected Identity ();
Attributes

Remarks

Constructor for serialization only.

Java documentation for java.security.Identity.Identity().

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

Identity(String)

Caution

deprecated

Constructs an identity with the specified name and no scope.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
[System.Obsolete("deprecated")]
public Identity (string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Security.Identity : string -> Java.Security.Identity

Parameters

name
String

the identity name.

Attributes

Remarks

Constructs an identity with the specified name and no scope.

Java documentation for java.security.Identity.Identity(java.lang.String).

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

Identity(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Identity (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.Identity : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.Identity

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

Identity(String, IdentityScope)

Caution

deprecated

Constructs an identity with the specified name and scope.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/security/IdentityScope;)V", "")]
[System.Obsolete("deprecated")]
public Identity (string? name, Java.Security.IdentityScope? scope);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/security/IdentityScope;)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Security.Identity : string * Java.Security.IdentityScope -> Java.Security.Identity

Parameters

name
String

the identity name.

scope
IdentityScope

the scope of the identity.

Attributes

Exceptions

if an Identity with the same name is already present in the specified scope.

Remarks

Constructs an identity with the specified name and scope.

Java documentation for java.security.Identity.Identity(java.lang.String, java.security.IdentityScope).

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