System.Device
Represents a civic address. A civic address can include fields such as street address, postal code, state/province, and country or region.
Initializes a new instance of the class.
Initializes a new instance of the class using address information.
A string containing the first line of the street address.
A string containing the second line of the street address.
A string containing the building name or number.
A string containing the city.
A string containing the country or region.
A string containing the floor number.
A string containing the postal code.
A string containing the state or province.
At least one parameter must be a non-empty string.
Gets or sets the first line of the address.
The first line of the address. If the data is not provided, returns .
Gets or sets the second line of the address.
The second line of the address. If the data is not provided, returns .
Gets or sets the building name or number.
The building name or number. If the data is not provided, returns .
Gets or sets the name of the city.
The name of the city. If the data is not provided, returns .
Gets or sets the country or region of the location.
The country or region code. If the data is not provided, returns .
Gets or sets the floor level of the location.
A string that contains the floor level. If the data is not provided, returns .
Gets a value that indicates whether the contains data.
if the is equal to ; otherwise, .
Gets or sets the postal code of the location.
The postal code of the location. If the data is not provided, returns .
Gets or sets the state or province of the location.
The state or province of the location. If the data is not provided, returns .
Represents a that contains no data.
Provides functionality for resolving a coordinate-based location to a civic address.
Initializes a new instance of the class.
Synchronously resolves a civic address from a location based on latitude and longitude. This call will block execution of the calling thread while the address is being resolved.
The containing the location to resolve to a civic address.
The civic address that is resolved from the parameter. is returned if the address cannot be resolved.
is .
does not contain a valid latitude and longitude.
Resolves an address asynchronously from a location that is based on latitude and longitude. The call does not block execution of the calling thread while the address is being resolved.
The containing the location to resolve to a civic address.
is .
does not contain a valid latitude and longitude.
Occurs when the address resolution that was initiated by a call to completes.
Represents a geographical location that is determined by latitude and longitude coordinates. May also include altitude, accuracy, speed, and course information.
Initializes a new instance of that has no data fields set.
Initializes a new instance of the class from latitude and longitude data.
The latitude of the location. May range from -90.0 to 90.0.
The longitude of the location. May range from -180.0 to 180.0.
Latitude or longitude is out of range.
Initializes a new instance of the class from latitude, longitude, and altitude data.
Latitude. May range from -90.0 to 90.0.
Longitude. May range from -180.0 to 180.0
The altitude in meters. May be negative, 0, positive, or , if unknown.
, , or is out of range.
Initializes a new instance of the class from latitude, longitude, altitude, horizontal accuracy, vertical accuracy, speed, and course.
The latitude of the location. May range from -90.0 to 90.0.
The longitude of the location. May range from -180.0 to 180.0.
The altitude in meters. May be negative, 0, positive, or , if unknown.
The accuracy of the latitude and longitude coordinates, in meters. Must be greater than or equal to 0. If a value of 0 is supplied to this constructor, the property will be set to .
The accuracy of the altitude, in meters. Must be greater than or equal to 0. If a value of 0 is supplied to this constructor, the property will be set to .
The speed measured in meters per second. May be negative, 0, positive, or , if unknown. A negative speed can indicate moving in reverse.
The direction of travel, rather than orientation. This parameter is measured in degrees relative to true north. Must range from 0 to 360.0, or be .
, , , or is out of range.
Gets the altitude of the , in meters.
The altitude, in meters.
Gets or sets the heading in degrees, relative to true north.
The heading in degrees, relative to true north.
is set outside the valid range.
Determines if the object is equivalent to the parameter, based solely on latitude and longitude.
The object to compare to the calling object.
if the objects are equal; otherwise, .
Determines if a specified is equal to the current , based solely on latitude and longitude.
The object to compare the to.
, if the objects are equal; otherwise, .
Returns the distance between the latitude and longitude coordinates that are specified by this and another specified .
The for the location to calculate the distance to.
The distance between the two coordinates, in meters.
Serves as a hash function for the .
A hash code for the current .
Gets or sets the accuracy of the latitude and longitude that is given by the , in meters.
The accuracy of the latitude and longitude, in meters.
is set outside the valid range.
Gets a value that indicates whether the does not contain latitude or longitude data.
if the does not contain latitude or longitude data; otherwise, .
Gets or sets the latitude of the .
Latitude of the location.
is set outside the valid range.
Gets or sets the longitude of the .
The longitude.
is set outside the valid range.
Determines whether two objects refer to the same location.
The first to compare.
The second to compare.
, if the objects are determined to be equivalent; otherwise, .
Determines whether two objects correspond to different locations.
The first to compare.
The second to compare.
, if the objects are determined to be different; otherwise, .
Gets or sets the speed in meters per second.
The speed in meters per second. The speed must be greater than or equal to zero, or .
is set outside the valid range.
Returns a string that contains the latitude and longitude.
A string that contains the latitude and longitude, separated by a comma.
Represents a object that has unknown latitude and longitude fields.
Gets or sets the accuracy of the altitude given by the , in meters.
The accuracy of the altitude, in meters.
is set outside the valid range.
Supplies location data that is based on latitude and longitude coordinates.
Initializes a new instance of with default accuracy settings.
Initializes a new instance of , given an accuracy level.
that indicates the requested accuracy level of the location provider.
An accuracy of can degrade performance and should be specified only when high accuracy is needed.
The requested accuracy level for the location data that is provided by the .
, which indicates the requested accuracy level of the location provider.
Releases all resources that are used by the current instance of the class.
Releases all resources used by the current instance of the class.
to release both managed and unmanaged resources; to release only unmanaged resources.
Frees resources and performs other cleanup operations before the is reclaimed by garbage collection.
The distance that must be moved, in meters, relative to the coordinate from the last event, before the location provider raises another event.
Distance, in meters.
Called when a event occurs.
A object that contains the new location.
Called when a event occurs.
A object that contains the new status.
Called when a property of the changes.
The name of the property that has changed.
Indicates whether permission to access location data from location providers has been granted or denied.
A value that indicates whether permission has been granted or denied.
Gets the which indicates the current location.
The which indicates the current location.
Indicates that the latitude or longitude of the location data has changed.
Initiate the acquisition of data from the current location provider. This method enables events and allows access to the property.
Initiate the acquisition of data from the current location provider. This method enables events and allows access to the property.
to suppress the permission dialog box; to optionally show the permission dialog box if permissions have not already been granted.
Gets the current status of the .
A which indicates the availability of data from the .
Indicates that the status of the object has changed.
Stops the from providing location data and events.
Indicates that the property, the property, or the property has changed.
Indicates that the location data has changed.
Indicates that the status of the location provider has changed.
Initiates the acquisition of data from the current location provider. This method returns synchronously.
to suppress the permission dialog box; to display the permission dialog box.
Time in milliseconds to wait for the location provider to start before timing out.
if data acquisition is started within the time period specified by ; otherwise, .
Contains location data of a type specified by the type parameter of the class.
The type of the location data.
Initializes a new instance of the class.
Initializes a new instance of the class with a timestamp and position.
The time the location data was obtained.
The location data to use to initialize the object.
Gets or sets the location data for the object.
An object of type T that contains the location data for the object.
Gets or sets the time when the location data was obtained.
A that contains the time the location data was created.
Specifies the requested accuracy level for the location data that the application uses.
Optimize for power, performance, and other cost considerations.
Deliver the most accurate report possible. This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth.
Provides data for the event.
The type of the location data in the property of this event's property.
Initializes a new instance of the class
The updated position.
Gets the location data associated with the event.
A object that contains the location data in its property.
Indicates whether the calling application has permission to access location data.
Location permissions are denied.
Location permissions are granted.
Location permissions are not known. This status can occur while the provider is being initialized.
Indicates the ability of the location provider to provide location updates.
The location provider is disabled. On Windows 7, this is the case when the Sensor and Location platform has been disabled by group policy.
The location provider is initializing. For example, a GPS that is still obtaining a fix has this status.
No location data is available from any location provider.
A location provider is ready to supply new data.
Contains data for a GeoPositionStatusChanged event.
Initializes a new instance of the GeoPositionStatusChangedEventArgs class.
The new status.
Gets the updated status.
The updated status.
Provides a method that when implemented, resolves a latitude/longitude location to a civic address.
Resolves a to a civic address synchronously.
The latitude/longitude location to resolve to an address.
Initiates a request to resolve a latitude/longitude location to an address.
The latitude/longitude location to resolve to an address.
Occurs when an asynchronous request using to resolve a latitude/longitude to a civic address is complete.
Interface that can be implemented for providing accessing location data and receiving location updates.
The type of the object that contains the location data.
Gets the location data.
The containing the location data.
Occurs when the property has changed.
Initiate the acquisition of location data.
Start acquiring location data, specifying whether or not to suppress prompting for permissions. This method returns synchronously.
If , do not prompt the user to enable location providers and only start if location data is already enabled.
If , a dialog box may be displayed to prompt the user to enable location sensors that are disabled.
Gets the status of location data.
The status of location data.
Occurs when the property changes.
Stop acquiring location data.
Start acquiring location data, specifying an initialization timeout. This method returns synchronously.
If , do not prompt the user to enable location providers and only start if location data is already enabled.
If , a dialog box may be displayed to prompt the user to enable location sensors that are disabled.
Time in milliseconds to wait for initialization to complete.
if succeeded, if timed out.
Provides data for the event.
Initializes a new instance of .
The that contains the address resolved from the latitude/longitude location, if successful.
The exception object for any exception that may have occurred during the attempt to resolve the address.
if the operation was cancelled; otherwise, .
A token for tracking the request to resolve the address. May be if not used.
Gets the associated with the event.
The associated with the event. If the address could not be resolved, this property returns .