Identity Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.
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.