Поделиться через


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

Значение времени ожидания, по истечении которого определение расположения будет отменено.

Применяется к