GeoCoordinate.Equality(GeoCoordinate, GeoCoordinate) 运算符
定义
确定两个 GeoCoordinate 对象是否指向相同的位置。Determines whether two GeoCoordinate objects refer to the same location.
public:
static bool operator ==(System::Device::Location::GeoCoordinate ^ left, System::Device::Location::GeoCoordinate ^ right);
public static bool operator == (System.Device.Location.GeoCoordinate left, System.Device.Location.GeoCoordinate right);
static member ( = ) : System.Device.Location.GeoCoordinate * System.Device.Location.GeoCoordinate -> bool
Public Shared Operator == (left As GeoCoordinate, right As GeoCoordinate) As Boolean
参数
- left
- GeoCoordinate
要比较的第一个 GeoCoordinate。The first GeoCoordinate to compare.
- right
- GeoCoordinate
要比较的第二个 GeoCoordinate。The second GeoCoordinate to compare.
返回
如果确定两个 GeoCoordinate 对象相等,则为 true;否则为 false。true, if the GeoCoordinate objects are determined to be equivalent; otherwise, false.
注解
等效 GeoCoordinate 对象具有相同的 Latitude 和 Longitude 属性。Equivalent GeoCoordinate objects have the same Latitude and Longitude properties. Altitude、 HorizontalAccuracy 和 VerticalAccuracy 属性不用于确定等效性。The Altitude, HorizontalAccuracy, and VerticalAccuracy properties are not used to determine equivalency.