QueryLocationException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| QueryLocationException(String) |
创建位置查询异常,并显示未指定的错误代码。 |
| QueryLocationException(String, QueryLocationErrorReason) |
创建包含消息和错误代码的位置查询异常。 |
| QueryLocationException(String, QueryLocationErrorReason, Throwable) |
创建位置查询异常,并显示消息、错误代码和原因。 |
QueryLocationException(String)
创建位置查询异常,并显示未指定的错误代码。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=34)]
public QueryLocationException(string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=34)>]
new Android.Telecom.QueryLocationException : string -> Android.Telecom.QueryLocationException
参数
- message
- String
用于描述位置查询失败或 null.
- 特性
注解
错误代码为 Unspecified.
适用于
QueryLocationException(String, QueryLocationErrorReason)
创建包含消息和错误代码的位置查询异常。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=34)]
public QueryLocationException(string? message, Android.Telecom.QueryLocationErrorReason code);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=34)>]
new Android.Telecom.QueryLocationException : string * Android.Telecom.QueryLocationErrorReason -> Android.Telecom.QueryLocationException
参数
- message
- String
用于描述位置查询失败或 null.
值为下列值之一: RequestTimeOut; PreviousRequestExists; NotPermittedNotAllowedForNonEmergencyConnections; ; ; ServiceUnavailableUnspecified
- 特性
注解
Android 参考。android.telecom.QueryLocationException.QueryLocationException
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
QueryLocationException(String, QueryLocationErrorReason, Throwable)
创建位置查询异常,并显示消息、错误代码和原因。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/Throwable;)V", "", ApiSince=34)]
public QueryLocationException(string? message, Android.Telecom.QueryLocationErrorReason code, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/Throwable;)V", "", ApiSince=34)>]
new Android.Telecom.QueryLocationException : string * Android.Telecom.QueryLocationErrorReason * Java.Lang.Throwable -> Android.Telecom.QueryLocationException
参数
- message
- String
用于描述位置查询失败或 null.
值为下列值之一: RequestTimeOut; PreviousRequestExists; NotPermittedNotAllowedForNonEmergencyConnections; ; ; ServiceUnavailableUnspecified
- cause
- Throwable
导致此失败的异常,或 null。
- 特性
注解
Android 参考。android.telecom.QueryLocationException.QueryLocationException
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。