GeolocationRequest 构造函数

定义

重载

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

超时值,之后将取消位置确定。

适用于