共用方式為


GeolocationRequest 建構函式

定義

多載

GeolocationRequest()

使用預設選項來初始化 GeolocationRequest 類別的新執行個體。

GeolocationRequest(GeolocationAccuracy)

使用指定的精確度,初始化 類別的新實例 GeolocationRequest

GeolocationRequest(GeolocationAccuracy, TimeSpan)

使用指定的精確度和逾時,初始化 類別的新實例 GeolocationRequest

GeolocationRequest()

來源:
GeolocationRequest.shared.cs
來源:
GeolocationRequest.shared.cs

使用預設選項來初始化 GeolocationRequest 類別的新執行個體。

public:
 GeolocationRequest();
public GeolocationRequest ();
Public Sub New ()

適用於

GeolocationRequest(GeolocationAccuracy)

來源:
GeolocationRequest.shared.cs
來源:
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)

來源:
GeolocationRequest.shared.cs
來源:
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

逾時值,之後將取消位置判斷。

適用於