InvalidClassException 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
InvalidClassException(String) |
Report an InvalidClassException for the reason specified. |
InvalidClassException(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
InvalidClassException(String, String) |
Constructs an InvalidClassException object. |
InvalidClassException(String)
Report an InvalidClassException for the reason specified.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public InvalidClassException (string? reason);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.IO.InvalidClassException : string -> Java.IO.InvalidClassException
Parameters
- reason
- String
String describing the reason for the exception.
- Attributes
Remarks
Report an InvalidClassException for the reason specified.
Java documentation for java.io.InvalidClassException.InvalidClassException(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
InvalidClassException(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected InvalidClassException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.InvalidClassException : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.InvalidClassException
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
InvalidClassException(String, String)
Constructs an InvalidClassException object.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public InvalidClassException (string? cname, string? reason);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Java.IO.InvalidClassException : string * string -> Java.IO.InvalidClassException
Parameters
- cname
- String
a String naming the invalid class.
- reason
- String
a String describing the reason for the exception.
- Attributes
Remarks
Constructs an InvalidClassException 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.