GeolocationRequest 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GeolocationRequest() |
使用默认选项初始化 GeolocationRequest 类的新实例。 |
GeolocationRequest(GeolocationAccuracy) |
使用指定的准确度初始化类的新实例 GeolocationRequest 。 |
GeolocationRequest(GeolocationAccuracy, TimeSpan) |
使用指定的准确性和超时值初始化类的新实例 GeolocationRequest 。 |
GeolocationRequest()
- Source:
- GeolocationRequest.shared.cs
- Source:
- GeolocationRequest.shared.cs
使用默认选项初始化 GeolocationRequest 类的新实例。
public:
GeolocationRequest();
public GeolocationRequest ();
Public Sub New ()
适用于
GeolocationRequest(GeolocationAccuracy)
- Source:
- GeolocationRequest.shared.cs
- Source:
- GeolocationRequest.shared.cs
使用指定的准确度初始化类的新实例 GeolocationRequest 。
public:
GeolocationRequest(Microsoft::Maui::Devices::Sensors::GeolocationAccuracy accuracy);
public GeolocationRequest (Microsoft.Maui.Devices.Sensors.GeolocationAccuracy accuracy);
new Microsoft.Maui.Devices.Sensors.GeolocationRequest : Microsoft.Maui.Devices.Sensors.GeolocationAccuracy -> Microsoft.Maui.Devices.Sensors.GeolocationRequest
Public Sub New (accuracy As GeolocationAccuracy)
参数
- accuracy
- GeolocationAccuracy
确定位置所需的准确性。
适用于
GeolocationRequest(GeolocationAccuracy, TimeSpan)
- Source:
- GeolocationRequest.shared.cs
- Source:
- GeolocationRequest.shared.cs
使用指定的准确性和超时值初始化类的新实例 GeolocationRequest 。
public:
GeolocationRequest(Microsoft::Maui::Devices::Sensors::GeolocationAccuracy accuracy, TimeSpan timeout);
public GeolocationRequest (Microsoft.Maui.Devices.Sensors.GeolocationAccuracy accuracy, TimeSpan timeout);
new Microsoft.Maui.Devices.Sensors.GeolocationRequest : Microsoft.Maui.Devices.Sensors.GeolocationAccuracy * TimeSpan -> Microsoft.Maui.Devices.Sensors.GeolocationRequest
Public Sub New (accuracy As GeolocationAccuracy, timeout As TimeSpan)
参数
- accuracy
- GeolocationAccuracy
确定位置所需的准确性。
- timeout
- TimeSpan
一个超时值,之后将取消位置确定。