-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathGeoCoordinateWatcher.xml
More file actions
939 lines (835 loc) · 64.3 KB
/
GeoCoordinateWatcher.xml
File metadata and controls
939 lines (835 loc) · 64.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
<Type Name="GeoCoordinateWatcher" FullName="System.Device.Location.GeoCoordinateWatcher">
<TypeSignature Language="C#" Value="public class GeoCoordinateWatcher : IDisposable, System.ComponentModel.INotifyPropertyChanged, System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit GeoCoordinateWatcher extends System.Object implements class System.ComponentModel.INotifyPropertyChanged, class System.Device.Location.IGeoPositionWatcher`1<class System.Device.Location.GeoCoordinate>, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:System.Device.Location.GeoCoordinateWatcher" />
<TypeSignature Language="VB.NET" Value="Public Class GeoCoordinateWatcher
Implements IDisposable, IGeoPositionWatcher(Of GeoCoordinate), INotifyPropertyChanged" />
<TypeSignature Language="F#" Value="type GeoCoordinateWatcher = class
 interface IDisposable
 interface INotifyPropertyChanged
 interface IGeoPositionWatcher<GeoCoordinate>" />
<TypeSignature Language="C++ CLI" Value="public ref class GeoCoordinateWatcher : IDisposable, System::ComponentModel::INotifyPropertyChanged, System::Device::Location::IGeoPositionWatcher<System::Device::Location::GeoCoordinate ^>" />
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.ComponentModel.INotifyPropertyChanged</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate></InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Supplies location data that is based on latitude and longitude coordinates.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Device.Location.GeoCoordinateWatcher> class supplies coordinate-based location data from the current location provider. The current location provider is prioritized as the highest on the computer, based on a number of factors, such as the age and accuracy of the data from all providers, the accuracy requested by location applications, and the power consumption and performance impact associated with the location provider. The current location provider might change over time, for instance, when a GPS device loses its satellite signal indoors and a Wi-Fi triangulation provider becomes the most accurate provider on the computer.
To begin accessing location data, create a <xref:System.Device.Location.GeoCoordinateWatcher> and call <xref:System.Device.Location.GeoCoordinateWatcher.Start*> or <xref:System.Device.Location.GeoCoordinateWatcher.TryStart*> to initiate the acquisition of data from the current location provider.
The <xref:System.Device.Location.GeoCoordinateWatcher.Status> property can be checked to determine if data is available. If data is available, you can get the location one time from the <xref:System.Device.Location.GeoCoordinateWatcher.Position*> property, or receive continuous location updates by handling the <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> event.
The <xref:System.Device.Location.GeoCoordinateWatcher.Permission*>, <xref:System.Device.Location.GeoCoordinateWatcher.Status*>, and <xref:System.Device.Location.GeoCoordinateWatcher.Position*> properties support <xref:System.ComponentModel.INotifyPropertyChanged>, so that an application can data-bind to these properties.
In Windows 7, all the <xref:System.Device.Location> classes are fully functional if a location provider is installed and able to resolve the computer's location.
> [!NOTE]
> On Windows 7 Starter Edition, the only supported location provider is the Default Location Provider in Control Panel, and an add-in must be installed to specify latitude and longitude.
**Note** In versions of Windows prior to Windows 7, the following conditions apply:
- All <xref:System.Device.Location> objects that have constructors can be created, but the <xref:System.Device.Location.GeoCoordinateWatcher.Status> property will always have the value <xref:System.Device.Location.GeoPositionStatus.Disabled>.
- The location indicated by the <xref:System.Device.Location.GeoPosition`1.Location> property of <xref:System.Device.Location.GeoCoordinateWatcher.Position*> will always be <xref:System.Device.Location.GeoCoordinate.Unknown>.
- No location events will be raised.
## Examples
The following program shows how to create a <xref:System.Device.Location.GeoCoordinateWatcher> and start acquiring data by using an initialization timeout. The code then prints the coordinates of the location, if known.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Overview/getlocationdatasync.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.getlocationdatasync1/vb/GetLocationDataSync.vb" id="Snippet1":::
The following program shows how to receive continuous location updates by subscribing to <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> events.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Overview/getlocationdataasync.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.getlocationdataasync/vb/GetLocationDataAsync.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of <see cref="T:System.Device.Location.GeoCoordinateWatcher" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
**Note** In versions of Windows prior to Windows 7, the following conditions apply:
- All <xref:System.Device.Location> objects that have constructors can be created, but the <xref:System.Device.Location.GeoCoordinateWatcher.Status> property will always have the value <xref:System.Device.Location.GeoPositionStatus.Disabled>.
- The location indicated by the <xref:System.Device.Location.GeoPosition`1.Location> property of <xref:System.Device.Location.GeoCoordinateWatcher.Position*> will always be <xref:System.Device.Location.GeoCoordinate.Unknown>.
- No location events will be raised.
]]></format>
</remarks>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public GeoCoordinateWatcher ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 GeoCoordinateWatcher();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> with default accuracy settings.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The default accuracy setting is <xref:System.Device.Location.GeoPositionAccuracy.Default>.
**Note** In versions of Windows prior to Windows 7, the following conditions apply:
- All <xref:System.Device.Location> objects that have constructors can be created, but the <xref:System.Device.Location.GeoCoordinateWatcher.Status> property will always have the value <xref:System.Device.Location.GeoPositionStatus.Disabled>.
- The location indicated by the <xref:System.Device.Location.GeoPosition`1.Location> property of <xref:System.Device.Location.GeoCoordinateWatcher.Position*> will always be <xref:System.Device.Location.GeoCoordinate.Unknown>.
- No location events will be raised.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public GeoCoordinateWatcher (System.Device.Location.GeoPositionAccuracy desiredAccuracy);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Device.Location.GeoPositionAccuracy desiredAccuracy) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.#ctor(System.Device.Location.GeoPositionAccuracy)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (desiredAccuracy As GeoPositionAccuracy)" />
<MemberSignature Language="F#" Value="new System.Device.Location.GeoCoordinateWatcher : System.Device.Location.GeoPositionAccuracy -> System.Device.Location.GeoCoordinateWatcher" Usage="new System.Device.Location.GeoCoordinateWatcher desiredAccuracy" />
<MemberSignature Language="C++ CLI" Value="public:
 GeoCoordinateWatcher(System::Device::Location::GeoPositionAccuracy desiredAccuracy);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="desiredAccuracy" Type="System.Device.Location.GeoPositionAccuracy" />
</Parameters>
<Docs>
<param name="desiredAccuracy">
<see cref="T:System.Device.Location.GeoPositionAccuracy" /> that indicates the requested accuracy level of the location provider.
An accuracy of <see cref="F:System.Device.Location.GeoPositionAccuracy.High" /> can degrade performance and should be specified only when high accuracy is needed.</param>
<summary>Initializes a new instance of <see cref="T:System.Device.Location.GeoCoordinateWatcher" />, given an accuracy level.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
**Note** In versions of Windows prior to Windows 7, the following conditions apply:
- All <xref:System.Device.Location> objects that have constructors can be created, but the <xref:System.Device.Location.GeoCoordinateWatcher.Status> property will always have the value <xref:System.Device.Location.GeoPositionStatus.Disabled>.
- The location indicated by the <xref:System.Device.Location.GeoPosition`1.Location> property of <xref:System.Device.Location.GeoCoordinateWatcher.Position*> will always be <xref:System.Device.Location.GeoCoordinate.Unknown>.
- No location events will be raised.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DesiredAccuracy">
<MemberSignature Language="C#" Value="public System.Device.Location.GeoPositionAccuracy DesiredAccuracy { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Device.Location.GeoPositionAccuracy DesiredAccuracy" />
<MemberSignature Language="DocId" Value="P:System.Device.Location.GeoCoordinateWatcher.DesiredAccuracy" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property DesiredAccuracy As GeoPositionAccuracy" />
<MemberSignature Language="F#" Value="member this.DesiredAccuracy : System.Device.Location.GeoPositionAccuracy" Usage="System.Device.Location.GeoCoordinateWatcher.DesiredAccuracy" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Device::Location::GeoPositionAccuracy DesiredAccuracy { System::Device::Location::GeoPositionAccuracy get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Device.Location.GeoPositionAccuracy</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the requested accuracy level for the location data that's provided by the <see cref="T:System.Device.Location.GeoCoordinateWatcher" />.</summary>
<value>The requested accuracy level of the location provider.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An accuracy of <xref:System.Device.Location.GeoPositionAccuracy.High> can degrade performance and should be specified only when high accuracy is needed.
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="Dispose">
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Releases all resources that are used by the current instance of the <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> class.</summary>
<remarks>
<format type="text/markdown">< and [Implementing a Dispose Method](/dotnet/standard/garbage-collection/implementing-dispose).
]]></format>
</remarks>
</Docs>
</MemberGroup>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="public void Dispose ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Dispose() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.Dispose" />
<MemberSignature Language="VB.NET" Value="Public Sub Dispose ()" />
<MemberSignature Language="F#" Value="abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit" Usage="geoCoordinateWatcher.Dispose " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual void Dispose();" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.IDisposable.Dispose</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Releases all resources that are used by the current instance of the <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> class.</summary>
<remarks>
<format type="text/markdown">< and [Implementing a Dispose Method](/dotnet/standard/garbage-collection/implementing-dispose).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="protected virtual void Dispose (bool disposing);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void Dispose(bool disposing) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.Dispose(System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub Dispose (disposing As Boolean)" />
<MemberSignature Language="F#" Value="abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit" Usage="geoCoordinateWatcher.Dispose disposing" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual void Dispose(bool disposing);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="disposing" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="disposing">
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
<summary>Releases all resources used by the current instance of the <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> class.</summary>
<remarks>
<format type="text/markdown">< and [Implementing a Dispose Method](/dotnet/standard/garbage-collection/implementing-dispose).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Finalize">
<MemberSignature Language="C#" Value="~GeoCoordinateWatcher ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Finalize() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.Finalize" />
<MemberSignature Language="VB.NET" Value="Finalize ()" />
<MemberSignature Language="F#" Value="override this.Finalize : unit -> unit" Usage="geoCoordinateWatcher.Finalize " />
<MemberSignature Language="C++ CLI" Value="!GeoCoordinateWatcher ()" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Frees resources and performs other cleanup operations before the <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> is reclaimed by garbage collection.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MovementThreshold">
<MemberSignature Language="C#" Value="public double MovementThreshold { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 MovementThreshold" />
<MemberSignature Language="DocId" Value="P:System.Device.Location.GeoCoordinateWatcher.MovementThreshold" />
<MemberSignature Language="VB.NET" Value="Public Property MovementThreshold As Double" />
<MemberSignature Language="F#" Value="member this.MovementThreshold : double with get, set" Usage="System.Device.Location.GeoCoordinateWatcher.MovementThreshold" />
<MemberSignature Language="C++ CLI" Value="public:
 property double MovementThreshold { double get(); void set(double value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>The distance that must be moved, in meters, relative to the coordinate from the last <see cref="E:System.Device.Location.GeoCoordinateWatcher.PositionChanged" /> event, before the location provider raises another <see cref="E:System.Device.Location.GeoCoordinateWatcher.PositionChanged" /> event.</summary>
<value>Distance, in meters.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The default movement threshold is zero, which means that any change in location detected by the current location provider causes a <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> event and an update in the <xref:System.Device.Location.GeoCoordinateWatcher.Position> property.
> [!NOTE]
> The movement threshold does not guarantee that events will be received at the requested threshold. The platform attempts to honor requests for a particular movement threshold, but in some cases, the events will not be raised at the requested threshold.
**Note** In versions of Windows prior to Windows 7, the following conditions apply:
- All <xref:System.Device.Location> objects that have constructors can be created, but the <xref:System.Device.Location.GeoCoordinateWatcher.Status> property will always have the value <xref:System.Device.Location.GeoPositionStatus.Disabled>.
- The location indicated by the <xref:System.Device.Location.GeoPosition`1.Location> property of <xref:System.Device.Location.GeoCoordinateWatcher.Position*> will always be <xref:System.Device.Location.GeoCoordinate.Unknown>.
- No location events will be raised.
The following diagram represents location coordinates that the location provider (for example, a GPS device) supplies to the computer. P1, in the diagram, represents the location data included in a <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> event, and P2, P3, and P4 represent points within the movement threshold. So when the location provider supplies data indicating a location at those points (P1, P2, P3, and P4), no <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> events are raised, and <xref:System.Device.Location.GeoCoordinateWatcher.Position*> returns P1. The point P5 is outside of the <xref:System.Device.Location.GeoCoordinateWatcher.MovementThreshold*> distance, so at that point, <xref:System.Device.Location.GeoCoordinateWatcher.Position*> is updated and a <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> event is raised.

]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OnPositionChanged">
<MemberSignature Language="C#" Value="protected void OnPositionChanged (System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate> e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void OnPositionChanged(class System.Device.Location.GeoPositionChangedEventArgs`1<class System.Device.Location.GeoCoordinate> e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.OnPositionChanged(System.Device.Location.GeoPositionChangedEventArgs{System.Device.Location.GeoCoordinate})" />
<MemberSignature Language="VB.NET" Value="Protected Sub OnPositionChanged (e As GeoPositionChangedEventArgs(Of GeoCoordinate))" />
<MemberSignature Language="F#" Value="member this.OnPositionChanged : System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate> -> unit" Usage="geoCoordinateWatcher.OnPositionChanged e" />
<MemberSignature Language="C++ CLI" Value="protected:
 void OnPositionChanged(System::Device::Location::GeoPositionChangedEventArgs<System::Device::Location::GeoCoordinate ^> ^ e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>" />
</Parameters>
<Docs>
<param name="e">A <see cref="T:System.Device.Location.GeoPositionChangedEventArgs`1" /> object that contains the new location.</param>
<summary>Called when a <see cref="E:System.Device.Location.GeoCoordinateWatcher.PositionChanged" /> event occurs.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following program shows how to subscribe to continuous updates from <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> events.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Overview/getlocationdataasync.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.getlocationdataasync/vb/GetLocationDataAsync.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OnPositionStatusChanged">
<MemberSignature Language="C#" Value="protected void OnPositionStatusChanged (System.Device.Location.GeoPositionStatusChangedEventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void OnPositionStatusChanged(class System.Device.Location.GeoPositionStatusChangedEventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.OnPositionStatusChanged(System.Device.Location.GeoPositionStatusChangedEventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Sub OnPositionStatusChanged (e As GeoPositionStatusChangedEventArgs)" />
<MemberSignature Language="F#" Value="member this.OnPositionStatusChanged : System.Device.Location.GeoPositionStatusChangedEventArgs -> unit" Usage="geoCoordinateWatcher.OnPositionStatusChanged e" />
<MemberSignature Language="C++ CLI" Value="protected:
 void OnPositionStatusChanged(System::Device::Location::GeoPositionStatusChangedEventArgs ^ e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.Device.Location.GeoPositionStatusChangedEventArgs" />
</Parameters>
<Docs>
<param name="e">A <see cref="T:System.Device.Location.GeoPositionStatusChangedEventArgs" /> object that contains the new status.</param>
<summary>Called when a <see cref="E:System.Device.Location.GeoCoordinateWatcher.StatusChanged" /> event occurs.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnPropertyChanged">
<MemberSignature Language="C#" Value="protected void OnPropertyChanged (string propertyName);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void OnPropertyChanged(string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.OnPropertyChanged(System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Sub OnPropertyChanged (propertyName As String)" />
<MemberSignature Language="F#" Value="member this.OnPropertyChanged : string -> unit" Usage="geoCoordinateWatcher.OnPropertyChanged propertyName" />
<MemberSignature Language="C++ CLI" Value="protected:
 void OnPropertyChanged(System::String ^ propertyName);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyName" Type="System.String" />
</Parameters>
<Docs>
<param name="propertyName">The name of the property that has changed.</param>
<summary>Called when a property of the <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> changes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Handle the <xref:System.ComponentModel.INotifyPropertyChanged.PropertyChanged> event to implement data binding in Windows Forms applications.
This method indicates that the <xref:System.Device.Location.GeoCoordinateWatcher.Status> property, the <xref:System.Device.Location.GeoCoordinateWatcher.Position> property, or the <xref:System.Device.Location.GeoCoordinateWatcher.Permission> property has changed.
]]></format>
</remarks>
<altmember cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged" />
</Docs>
</Member>
<Member MemberName="Permission">
<MemberSignature Language="C#" Value="public System.Device.Location.GeoPositionPermission Permission { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Device.Location.GeoPositionPermission Permission" />
<MemberSignature Language="DocId" Value="P:System.Device.Location.GeoCoordinateWatcher.Permission" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Permission As GeoPositionPermission" />
<MemberSignature Language="F#" Value="member this.Permission : System.Device.Location.GeoPositionPermission" Usage="System.Device.Location.GeoCoordinateWatcher.Permission" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Device::Location::GeoPositionPermission Permission { System::Device::Location::GeoPositionPermission get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Device.Location.GeoPositionPermission</ReturnType>
</ReturnValue>
<Docs>
<summary>Indicates whether permission to access location data from location providers has been granted or denied.</summary>
<value>A value that indicates whether permission has been granted or denied.</value>
<remarks>To be added.</remarks>
<altmember cref="T:System.Device.Location.GeoPositionPermission" />
</Docs>
</Member>
<Member MemberName="Position">
<MemberSignature Language="C#" Value="public System.Device.Location.GeoPosition<System.Device.Location.GeoCoordinate> Position { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Device.Location.GeoPosition`1<class System.Device.Location.GeoCoordinate> Position" />
<MemberSignature Language="DocId" Value="P:System.Device.Location.GeoCoordinateWatcher.Position" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Position As GeoPosition(Of GeoCoordinate)" />
<MemberSignature Language="F#" Value="member this.Position : System.Device.Location.GeoPosition<System.Device.Location.GeoCoordinate>" Usage="System.Device.Location.GeoCoordinateWatcher.Position" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Device::Location::GeoPosition<System::Device::Location::GeoCoordinate ^> ^ Position { System::Device::Location::GeoPosition<System::Device::Location::GeoCoordinate ^> ^ get(); };" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:System.Device.Location.IGeoPositionWatcher`1.Position</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<get: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Device.Location.GeoPosition<System.Device.Location.GeoCoordinate></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the <see cref="T:System.Device.Location.GeoCoordinate" /> that indicates the current location.</summary>
<value>The <see cref="T:System.Device.Location.GeoCoordinate" /> that indicates the current location.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
In the following example, the <xref:System.Device.Location.GeoPosition`1.Location> property of the <xref:System.Device.Location.GeoCoordinateWatcher.Position> property is saved in a <xref:System.Device.Location.GeoCoordinate> object. The latitude and longitude fields of the <xref:System.Device.Location.GeoCoordinate> are printed if they are known.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Overview/getlocationdatasync.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.getlocationdatasync1/vb/GetLocationDataSync.vb" id="Snippet2":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="PositionChanged">
<MemberSignature Language="C#" Value="public event EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>> PositionChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class System.Device.Location.GeoPositionChangedEventArgs`1<class System.Device.Location.GeoCoordinate>> PositionChanged" />
<MemberSignature Language="DocId" Value="E:System.Device.Location.GeoCoordinateWatcher.PositionChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event PositionChanged As EventHandler(Of GeoPositionChangedEventArgs(Of GeoCoordinate)) " FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2" />
<MemberSignature Language="F#" Value="member this.PositionChanged : EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>> " Usage="member this.PositionChanged : System.EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>> " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler<System::Device::Location::GeoPositionChangedEventArgs<System::Device::Location::GeoCoordinate ^> ^> ^ PositionChanged;" />
<MemberSignature Language="VB.NET" Value="Public Event PositionChanged As EventHandler(Of GeoPositionChangedEventArgs(Of GeoCoordinate)) " FrameworkAlternate="netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Event</MemberType>
<Implements>
<InterfaceMember>E:System.Device.Location.IGeoPositionWatcher`1.PositionChanged</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>></ReturnType>
</ReturnValue>
<Docs>
<summary>Indicates that the latitude or longitude of the location data has changed.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This event is only raised when the distance moved since the last event exceeds the threshold that is specified by <xref:System.Device.Location.GeoCoordinateWatcher.MovementThreshold*>.
The <xref:System.Device.Location.GeoPositionChangedEventArgs`1> object passed to the event handler includes the <xref:System.Device.Location.GeoPosition`1> object that contains the updated location data.
## Examples
The following example shows how to handle the first <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> event.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinate/Latitude/locationevent.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.locationevent1/vb/locationevent.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="P:System.Device.Location.GeoCoordinateWatcher.MovementThreshold" />
</Docs>
</Member>
<MemberGroup MemberName="Start">
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initiate the acquisition of data from the current location provider. This method enables <see cref="E:System.Device.Location.GeoCoordinateWatcher.PositionChanged" /> events and allows access to the <see cref="P:System.Device.Location.GeoCoordinateWatcher.Position" /> property.</summary>
</Docs>
</MemberGroup>
<Member MemberName="Start">
<MemberSignature Language="C#" Value="public void Start ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Start() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.Start" />
<MemberSignature Language="VB.NET" Value="Public Sub Start ()" />
<MemberSignature Language="F#" Value="abstract member Start : unit -> unit
override this.Start : unit -> unit" Usage="geoCoordinateWatcher.Start " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual void Start();" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Device.Location.IGeoPositionWatcher`1.Start</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Initiate the acquisition of data from the current location provider. This method enables <see cref="E:System.Device.Location.GeoCoordinateWatcher.PositionChanged" /> events and allows access to the <see cref="P:System.Device.Location.GeoCoordinateWatcher.Position" /> property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Calling this method will initiate the acquisition of data from the current location provider. The current location provider is selected based on factors such as the age and accuracy of the data from all providers, the accuracy requested by the application or applications, and the power consumption and performance impact associated with the location provider. The current location provider might change over time, for instance, when a GPS device loses its satellite signal indoors and a Wi-Fi triangulation provider becomes the most accurate provider on the computer.
If the current prioritized location provider does not have data when the <xref:System.Device.Location.GeoCoordinateWatcher.Start*> method is called, it will start to acquire data. If the permissions have been granted to the client when the data becomes available, data can be accessed synchronously, and will be delivered asynchronously if events are being handled.
If the Windows 7 Sensor and Location platform is disabled when <xref:System.Device.Location.GeoCoordinateWatcher.Start*> is called, <xref:System.Device.Location.GeoCoordinateWatcher.Start*> will immediately return, <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> events will not be raised, and the location returned by the <xref:System.Device.Location.GeoPosition`1.Location> property of <xref:System.Device.Location.GeoCoordinateWatcher.Position*> will contain <xref:System.Device.Location.GeoCoordinate.Unknown>.
If the current prioritized location provider does have data, it will be available synchronously immediately, and will be delivered asynchronously if events are being handled.
If the calling application does not have permissions to access data from a location provider, the user will be prompted with a dialog box to either grant or deny permission. The dialog box will be modeless.
## Examples
The following program handles the first location update that occurs after <xref:System.Device.Location.GeoCoordinateWatcher.Start*> is called.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Start/getlocationdataupdateonce.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.getlocationdataupdateonce/vb/GetLocationDataUpdateOnce.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Start">
<MemberSignature Language="C#" Value="public void Start (bool suppressPermissionPrompt);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Start(bool suppressPermissionPrompt) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.Start(System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub Start (suppressPermissionPrompt As Boolean)" />
<MemberSignature Language="F#" Value="abstract member Start : bool -> unit
override this.Start : bool -> unit" Usage="geoCoordinateWatcher.Start suppressPermissionPrompt" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual void Start(bool suppressPermissionPrompt);" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Device.Location.IGeoPositionWatcher`1.Start(System.Boolean)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="suppressPermissionPrompt" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="suppressPermissionPrompt">
<see langword="true" /> to suppress the permission dialog box; <see langword="false" /> to optionally show the permission dialog box if permissions have not already been granted.</param>
<summary>Initiate the acquisition of data from the current location provider. This method enables <see cref="E:System.Device.Location.GeoCoordinateWatcher.PositionChanged" /> events and allows access to the <see cref="P:System.Device.Location.GeoCoordinateWatcher.Position" /> property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Status">
<MemberSignature Language="C#" Value="public System.Device.Location.GeoPositionStatus Status { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Device.Location.GeoPositionStatus Status" />
<MemberSignature Language="DocId" Value="P:System.Device.Location.GeoCoordinateWatcher.Status" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Status As GeoPositionStatus" />
<MemberSignature Language="F#" Value="member this.Status : System.Device.Location.GeoPositionStatus" Usage="System.Device.Location.GeoCoordinateWatcher.Status" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Device::Location::GeoPositionStatus Status { System::Device::Location::GeoPositionStatus get(); };" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:System.Device.Location.IGeoPositionWatcher`1.Status</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<get: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Device.Location.GeoPositionStatus</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the current status of the <see cref="T:System.Device.Location.GeoCoordinateWatcher" />.</summary>
<value>A <see cref="T:System.Device.Location.GeoPositionStatus" /> that indicates the availability of data from the <see cref="T:System.Device.Location.GeoCoordinateWatcher" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example handles <xref:System.Device.Location.GeoCoordinateWatcher.StatusChanged> events and prints a message based on the <xref:System.Device.Location.GeoCoordinateWatcher.Status*>.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Status/showstatusupdates.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.showstatusupdates/vb/ShowStatusUpdates.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Device.Location.GeoPositionStatus" />
</Docs>
</Member>
<Member MemberName="StatusChanged">
<MemberSignature Language="C#" Value="public event EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs> StatusChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class System.Device.Location.GeoPositionStatusChangedEventArgs> StatusChanged" />
<MemberSignature Language="DocId" Value="E:System.Device.Location.GeoCoordinateWatcher.StatusChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event StatusChanged As EventHandler(Of GeoPositionStatusChangedEventArgs) " FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2" />
<MemberSignature Language="F#" Value="member this.StatusChanged : EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs> " Usage="member this.StatusChanged : System.EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs> " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler<System::Device::Location::GeoPositionStatusChangedEventArgs ^> ^ StatusChanged;" />
<MemberSignature Language="VB.NET" Value="Public Event StatusChanged As EventHandler(Of GeoPositionStatusChangedEventArgs) " FrameworkAlternate="netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Event</MemberType>
<Implements>
<InterfaceMember>E:System.Device.Location.IGeoPositionWatcher`1.StatusChanged</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs></ReturnType>
</ReturnValue>
<Docs>
<summary>Indicates that the status of the <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> object has changed.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Device.Location.GeoCoordinateWatcher.StatusChanged> event is raised on the same thread that the <xref:System.Device.Location.GeoCoordinateWatcher> object was created on.
## Examples
The following example demonstrates how to handle <xref:System.Device.Location.GeoCoordinateWatcher.StatusChanged> events.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Status/showstatusupdates.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.showstatusupdates/vb/ShowStatusUpdates.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Stop">
<MemberSignature Language="C#" Value="public void Stop ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Stop() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.Stop" />
<MemberSignature Language="VB.NET" Value="Public Sub Stop ()" />
<MemberSignature Language="F#" Value="abstract member Stop : unit -> unit
override this.Stop : unit -> unit" Usage="geoCoordinateWatcher.Stop " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual void Stop();" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Device.Location.IGeoPositionWatcher`1.Stop</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Stops the <see cref="T:System.Device.Location.GeoCoordinateWatcher" /> from providing location data and events.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
After <xref:System.Device.Location.GeoCoordinateWatcher.Stop*> is called, no further <xref:System.Device.Location.GeoCoordinateWatcher.PositionChanged> events occur, and the <xref:System.Device.Location.GeoCoordinateWatcher.Position> property will return <xref:System.Device.Location.GeoCoordinate.Unknown>.
When <xref:System.Device.Location.GeoCoordinateWatcher.Stop*> is called, the <xref:System.Device.Location.GeoCoordinateWatcher.Status> property is set to <xref:System.Device.Location.GeoPositionStatus.Disabled>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="System.ComponentModel.INotifyPropertyChanged.PropertyChanged">
<MemberSignature Language="C#" Value="event System.ComponentModel.PropertyChangedEventHandler System.ComponentModel.INotifyPropertyChanged.PropertyChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.ComponentModel.PropertyChangedEventHandler System.ComponentModel.INotifyPropertyChanged.PropertyChanged" />
<MemberSignature Language="DocId" Value="E:System.Device.Location.GeoCoordinateWatcher.System#ComponentModel#INotifyPropertyChanged#PropertyChanged" />
<MemberSignature Language="VB.NET" Value="Custom Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged" />
<MemberSignature Language="F#" Value="member this.System.ComponentModel.INotifyPropertyChanged.PropertyChanged : System.ComponentModel.PropertyChangedEventHandler " Usage="member this.System.ComponentModel.INotifyPropertyChanged.PropertyChanged : System.ComponentModel.PropertyChangedEventHandler " />
<MemberType>Event</MemberType>
<Implements>
<InterfaceMember>E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[add: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<add: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[remove: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<remove: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ComponentModel.PropertyChangedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Indicates that the <see cref="P:System.Device.Location.GeoCoordinateWatcher.Status" /> property, the <see cref="P:System.Device.Location.GeoCoordinateWatcher.Position" /> property, or the <see cref="P:System.Device.Location.GeoCoordinateWatcher.Permission" /> property has changed.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This member is an explicit interface member implementation. It can be used only when the <xref:System.Device.Location.GeoCoordinateWatcher> instance is cast to an <xref:System.ComponentModel.INotifyPropertyChanged> interface.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.PositionChanged">
<MemberSignature Language="C#" Value="event EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>> System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.PositionChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class System.Device.Location.GeoPositionChangedEventArgs`1<class System.Device.Location.GeoCoordinate>> System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.PositionChanged" />
<MemberSignature Language="DocId" Value="E:System.Device.Location.GeoCoordinateWatcher.System#Device#Location#IGeoPositionWatcher<System#Device#Location#GeoCoordinate>#PositionChanged" />
<MemberSignature Language="VB.NET" Value="Custom Event PositionChanged As EventHandler(Of GeoPositionChangedEventArgs(Of GeoCoordinate)) Implements System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>" />
<MemberSignature Language="F#" Value="member this.System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.PositionChanged : EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>> " Usage="member this.System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.PositionChanged : System.EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>> " />
<MemberType>Event</MemberType>
<Implements>
<InterfaceMember>E:System.Device.Location.IGeoPositionWatcher`1.PositionChanged</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[add: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<add: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[remove: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<remove: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler<System.Device.Location.GeoPositionChangedEventArgs<System.Device.Location.GeoCoordinate>></ReturnType>
</ReturnValue>
<Docs>
<summary>Indicates that the location data has changed.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.StatusChanged">
<MemberSignature Language="C#" Value="event EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs> System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.StatusChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class System.Device.Location.GeoPositionStatusChangedEventArgs> System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.StatusChanged" />
<MemberSignature Language="DocId" Value="E:System.Device.Location.GeoCoordinateWatcher.System#Device#Location#IGeoPositionWatcher<System#Device#Location#GeoCoordinate>#StatusChanged" />
<MemberSignature Language="VB.NET" Value="Custom Event StatusChanged As EventHandler(Of GeoPositionStatusChangedEventArgs) Implements System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>" />
<MemberSignature Language="F#" Value="member this.System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.StatusChanged : EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs> " Usage="member this.System.Device.Location.IGeoPositionWatcher<System.Device.Location.GeoCoordinate>.StatusChanged : System.EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs> " />
<MemberType>Event</MemberType>
<Implements>
<InterfaceMember>E:System.Device.Location.IGeoPositionWatcher`1.StatusChanged</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[add: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<add: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[remove: System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<remove: System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler<System.Device.Location.GeoPositionStatusChangedEventArgs></ReturnType>
</ReturnValue>
<Docs>
<summary>Indicates that the status of the location provider has changed.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TryStart">
<MemberSignature Language="C#" Value="public bool TryStart (bool suppressPermissionPrompt, TimeSpan timeout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool TryStart(bool suppressPermissionPrompt, valuetype System.TimeSpan timeout) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Device.Location.GeoCoordinateWatcher.TryStart(System.Boolean,System.TimeSpan)" />
<MemberSignature Language="VB.NET" Value="Public Function TryStart (suppressPermissionPrompt As Boolean, timeout As TimeSpan) As Boolean" />
<MemberSignature Language="F#" Value="abstract member TryStart : bool * TimeSpan -> bool
override this.TryStart : bool * TimeSpan -> bool" Usage="geoCoordinateWatcher.TryStart (suppressPermissionPrompt, timeout)" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual bool TryStart(bool suppressPermissionPrompt, TimeSpan timeout);" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Device.Location.IGeoPositionWatcher`1.TryStart(System.Boolean,System.TimeSpan)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Device</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Security.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="suppressPermissionPrompt" Type="System.Boolean" />
<Parameter Name="timeout" Type="System.TimeSpan" />
</Parameters>
<Docs>
<param name="suppressPermissionPrompt">
<see langword="true" /> to suppress the permission dialog box; <see langword="false" /> to display the permission dialog box.</param>
<param name="timeout">Time in milliseconds to wait for the location provider to start before timing out.</param>
<summary>Initiates the acquisition of data from the current location provider. This method returns synchronously.</summary>
<returns>
<see langword="true" /> if data acquisition is started within the time period specified by <paramref name="timeout" />; otherwise, <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method blocks execution of the calling thread during the time period specified by `timeout`. Use caution when calling <xref:System.Device.Location.GeoCoordinateWatcher.TryStart*> from the user interface thread of your application.
## Examples
The following example demonstrates how to call <xref:System.Device.Location.GeoCoordinateWatcher.TryStart*>.
:::code language="csharp" source="~/snippets/csharp/System.Device.Location/GeoCoordinateWatcher/Overview/getlocationdatasync.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Misc/system.device.location.getlocationdatasync1/vb/GetLocationDataSync.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>