Skip to content

GeolocationOption

Namespace: PuppeteerSharp

public class GeolocationOption : IEquatable<GeolocationOption>

Geolocation option.

Inheritance: object

Implements: IEquatable<GeolocationOption>

View source

public decimal Accuracy { get; set; }

Optional non-negative accuracy value.

Value: decimal — The accuracy.

View source

public decimal Latitude { get; set; }

Latitude between -90 and 90.

Value: decimal — The latitude.

View source

public decimal Longitude { get; set; }

Longitude between -180 and 180.

Value: decimal — The longitude.

View source

public bool Equals(GeolocationOption other)

Determines whether the specified GeolocationOption is equal to the current GeolocationOption.

Parameters

Name Type Description
other GeolocationOption The GeolocationOption to compare with the current GeolocationOption.

Returns: bool — true if the specified GeolocationOption is equal to the current GeolocationOption; otherwise, false.

View source

public override bool Equals(object obj)

Determines whether the specified object is equal to the current object.

Parameters

Name Type Description
obj object The object to compare with the current object.

Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;true&lt;/a> if the specified object is equal to the current object; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

View source

public override int GetHashCode()

Serves as the default hash function.

Returns: int — A hash code for the current object.

View source

Made with love by Dario Kondratiuk