OperationCanceledException 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
| Name | Description |
|---|---|
| OperationCanceledException() |
Creates an account-operation cancellation exception without a detail message or cause. |
| OperationCanceledException(Throwable) |
Creates an account-operation cancellation exception with a Java throwable cause. |
| OperationCanceledException(String) |
Creates an account-operation cancellation exception with a detail message. |
| OperationCanceledException(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| OperationCanceledException(String, Throwable) |
Creates an account-operation cancellation exception with a detail message and Java throwable cause. |
OperationCanceledException()
Creates an account-operation cancellation exception without a detail message or cause.
[Android.Runtime.Register(".ctor", "()V", "")]
public OperationCanceledException();
- Attributes
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
OperationCanceledException(Throwable)
Creates an account-operation cancellation exception with a Java throwable cause.
[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public OperationCanceledException(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Android.Accounts.OperationCanceledException : Java.Lang.Throwable -> Android.Accounts.OperationCanceledException
Parameters
- cause
- Throwable
The cause of this exception.
- Attributes
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
OperationCanceledException(String)
Creates an account-operation cancellation exception with a detail message.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public OperationCanceledException(string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Accounts.OperationCanceledException : string -> Android.Accounts.OperationCanceledException
Parameters
- message
- String
A human-readable detail message.
- Attributes
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
OperationCanceledException(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected OperationCanceledException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Accounts.OperationCanceledException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Accounts.OperationCanceledException
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
OperationCanceledException(String, Throwable)
Creates an account-operation cancellation exception with a detail message and Java throwable cause.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public OperationCanceledException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Android.Accounts.OperationCanceledException : string * Java.Lang.Throwable -> Android.Accounts.OperationCanceledException
Parameters
- message
- String
A human-readable detail message.
- cause
- Throwable
The cause of this exception.
- Attributes
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.