GeolocationOption
Namespace: PuppeteerSharp
public class GeolocationOption : IEquatable<GeolocationOption>Geolocation option.
Inheritance: object
Implements: IEquatable<GeolocationOption>
Properties
Section titled “Properties”Accuracy
Section titled “Accuracy”public decimal Accuracy { get; set; }Optional non-negative accuracy value.
Value: decimal — The accuracy.
Latitude
Section titled “Latitude”public decimal Latitude { get; set; }Latitude between -90 and 90.
Value: decimal — The latitude.
Longitude
Section titled “Longitude”public decimal Longitude { get; set; }Longitude between -180 and 180.
Value: decimal — The longitude.
Methods
Section titled “Methods”Equals(GeolocationOption)
Section titled “Equals(GeolocationOption)”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.
Equals(object)
Section titled “Equals(object)”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">true</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">false</a>.
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Serves as the default hash function.
Returns: int — A hash code for the current object.
Made with love by Dario Kondratiuk