/
ObservableValidator.xml
967 lines (967 loc) · 71.4 KB
/
ObservableValidator.xml
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
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
<Type Name="ObservableValidator" FullName="Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator">
<TypeSignature Language="C#" Value="public abstract class ObservableValidator : Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject, System.ComponentModel.INotifyDataErrorInfo" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit ObservableValidator extends Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject implements class System.ComponentModel.INotifyDataErrorInfo" />
<TypeSignature Language="DocId" Value="T:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" />
<TypeSignature Language="VB.NET" Value="Public MustInherit Class ObservableValidator
Inherits ObservableObject
Implements INotifyDataErrorInfo" />
<TypeSignature Language="F#" Value="type ObservableValidator = class
 inherit ObservableObject
 interface INotifyDataErrorInfo" />
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.ComponentModel.INotifyDataErrorInfo</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>
A base class for objects implementing the <see cref="T:System.ComponentModel.INotifyDataErrorInfo" /> interface. This class
also inherits from <see cref="T:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject" />, so it can be used for observable items too.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected ObservableValidator ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.#ctor" />
<MemberSignature Language="VB.NET" Value="Protected Sub New ()" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" /> class.
This constructor will create a new <see cref="T:System.ComponentModel.DataAnnotations.ValidationContext" /> that will
be used to validate all properties, which will reference the current instance
and no additional services or validation properties and settings.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected ObservableValidator (System.Collections.Generic.IDictionary<object,object?>? items);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.Collections.Generic.IDictionary`2<object, object> items) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.#ctor(System.Collections.Generic.IDictionary{System.Object,System.Object})" />
<MemberSignature Language="VB.NET" Value="Protected Sub New (items As IDictionary(Of Object, Object))" />
<MemberSignature Language="F#" Value="new Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator : System.Collections.Generic.IDictionary<obj, obj> -> Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" Usage="new Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator items" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="items" Type="System.Collections.Generic.IDictionary<System.Object,System.Object>" />
</Parameters>
<Docs>
<param name="items">A set of key/value pairs to make available to consumers.</param>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" /> class.
This constructor will create a new <see cref="T:System.ComponentModel.DataAnnotations.ValidationContext" /> that will
be used to validate all properties, which will reference the current instance.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected ObservableValidator (System.ComponentModel.DataAnnotations.ValidationContext validationContext);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.DataAnnotations.ValidationContext validationContext) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.#ctor(System.ComponentModel.DataAnnotations.ValidationContext)" />
<MemberSignature Language="VB.NET" Value="Protected Sub New (validationContext As ValidationContext)" />
<MemberSignature Language="F#" Value="new Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator : System.ComponentModel.DataAnnotations.ValidationContext -> Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" Usage="new Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator validationContext" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="validationContext" Type="System.ComponentModel.DataAnnotations.ValidationContext" />
</Parameters>
<Docs>
<param name="validationContext">
The <see cref="T:System.ComponentModel.DataAnnotations.ValidationContext" /> instance to use to validate properties.
<para>
This instance will be passed to all <see cref="M:System.ComponentModel.DataAnnotations.Validator.TryValidateObject(System.Object,System.ComponentModel.DataAnnotations.ValidationContext,System.Collections.Generic.ICollection{System.ComponentModel.DataAnnotations.ValidationResult})" />
calls executed by the current viewmodel, and its <see cref="P:System.ComponentModel.DataAnnotations.ValidationContext.MemberName" /> property will be updated every time
before the call is made to set the name of the property being validated. The property name will not be reset after that, so the
value of <see cref="P:System.ComponentModel.DataAnnotations.ValidationContext.MemberName" /> will always indicate the name of the last property that was validated, if any.
</para></param>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" /> class.
This constructor will store the input <see cref="T:System.ComponentModel.DataAnnotations.ValidationContext" /> instance,
and it will use it to validate all properties for the current viewmodel.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected ObservableValidator (IServiceProvider? serviceProvider, System.Collections.Generic.IDictionary<object,object?>? items);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.IServiceProvider serviceProvider, class System.Collections.Generic.IDictionary`2<object, object> items) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.#ctor(System.IServiceProvider,System.Collections.Generic.IDictionary{System.Object,System.Object})" />
<MemberSignature Language="VB.NET" Value="Protected Sub New (serviceProvider As IServiceProvider, items As IDictionary(Of Object, Object))" />
<MemberSignature Language="F#" Value="new Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator : IServiceProvider * System.Collections.Generic.IDictionary<obj, obj> -> Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" Usage="new Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator (serviceProvider, items)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="serviceProvider" Type="System.IServiceProvider" />
<Parameter Name="items" Type="System.Collections.Generic.IDictionary<System.Object,System.Object>" />
</Parameters>
<Docs>
<param name="serviceProvider">An <see cref="T:System.IServiceProvider" /> instance to make available during validation.</param>
<param name="items">A set of key/value pairs to make available to consumers.</param>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator" /> class.
This constructor will create a new <see cref="T:System.ComponentModel.DataAnnotations.ValidationContext" /> that will
be used to validate all properties, which will reference the current instance.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ClearErrors">
<MemberSignature Language="C#" Value="protected void ClearErrors (string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void ClearErrors(string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.ClearErrors(System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Sub ClearErrors (Optional propertyName As String = Nothing)" />
<MemberSignature Language="F#" Value="member this.ClearErrors : string -> unit" Usage="observableValidator.ClearErrors propertyName" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.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 to clear validation errors for.
If a <see langword="null" /> or empty name is used, all entity-level errors will be cleared.
</param>
<summary>
Clears the validation errors for a specified property or for the entire entity.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ErrorsChanged">
<MemberSignature Language="C#" Value="public event EventHandler<System.ComponentModel.DataErrorsChangedEventArgs>? ErrorsChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class System.ComponentModel.DataErrorsChangedEventArgs> ErrorsChanged" />
<MemberSignature Language="DocId" Value="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.ErrorsChanged" />
<MemberSignature Language="VB.NET" Value="Public Event ErrorsChanged As EventHandler(Of DataErrorsChangedEventArgs) " />
<MemberSignature Language="F#" Value="member this.ErrorsChanged : EventHandler<System.ComponentModel.DataErrorsChangedEventArgs> " Usage="member this.ErrorsChanged : System.EventHandler<System.ComponentModel.DataErrorsChangedEventArgs> " />
<MemberType>Event</MemberType>
<Implements>
<InterfaceMember>E:System.ComponentModel.INotifyDataErrorInfo.ErrorsChanged</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler<System.ComponentModel.DataErrorsChangedEventArgs></ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetErrors">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> GetErrors (string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Collections.Generic.IEnumerable`1<class System.ComponentModel.DataAnnotations.ValidationResult> GetErrors(string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.GetErrors(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function GetErrors (Optional propertyName As String = Nothing) As IEnumerable(Of ValidationResult)" />
<MemberSignature Language="F#" Value="member this.GetErrors : string -> seq<System.ComponentModel.DataAnnotations.ValidationResult>" Usage="observableValidator.GetErrors propertyName" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyName" Type="System.String" />
</Parameters>
<Docs>
<param name="propertyName">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="HasErrors">
<MemberSignature Language="C#" Value="public bool HasErrors { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasErrors" />
<MemberSignature Language="DocId" Value="P:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.HasErrors" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasErrors As Boolean" />
<MemberSignature Language="F#" Value="member this.HasErrors : bool" Usage="Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.HasErrors" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:System.ComponentModel.INotifyDataErrorInfo.HasErrors</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SetProperty<T>">
<MemberSignature Language="C#" Value="protected bool SetProperty<T> (ref T field, T newValue, bool validate, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool SetProperty<T>(!!T& field, !!T newValue, bool validate, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``1(``0@,``0,System.Boolean,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function SetProperty(Of T) (ByRef field As T, newValue As T, validate As Boolean, Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="override this.SetProperty : 'T * 'T * bool * string -> bool" Usage="observableValidator.SetProperty (field, newValue, validate, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="field" Type="T" RefType="ref" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="validate" Type="System.Boolean" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="field">The field storing the property's value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="validate">If <see langword="true" />, <paramref name="newValue" /> will also be validated.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Compares the current and new values for a given property. If the value has changed,
raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> event, updates the property with
the new value, then raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> event.
</summary>
<returns>
<see langword="true" /> if the property was changed, <see langword="false" /> otherwise.</returns>
<remarks>
This method is just like <see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0@,``0,System.String)" />, just with the addition
of the <paramref name="validate" /> parameter. If that is set to <see langword="true" />, the new value will be
validated and <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.ErrorsChanged" /> will be raised if needed. Following the behavior of the base method,
the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> and <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> events
are not raised if the current and new value for the target property are the same.
</remarks>
</Docs>
</Member>
<Member MemberName="SetProperty<T>">
<MemberSignature Language="C#" Value="protected bool SetProperty<T> (T oldValue, T newValue, Action<T> callback, bool validate, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool SetProperty<T>(!!T oldValue, !!T newValue, class System.Action`1<!!T> callback, bool validate, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``1(``0,``0,System.Action{``0},System.Boolean,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function SetProperty(Of T) (oldValue As T, newValue As T, callback As Action(Of T), validate As Boolean, Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="override this.SetProperty : 'T * 'T * Action<'T> * bool * string -> bool" Usage="observableValidator.SetProperty (oldValue, newValue, callback, validate, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="callback" Type="System.Action<T>" />
<Parameter Name="validate" Type="System.Boolean" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="callback">A callback to invoke to update the property value.</param>
<param name="validate">If <see langword="true" />, <paramref name="newValue" /> will also be validated.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Compares the current and new values for a given property. If the value has changed,
raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> event, updates the property with
the new value, then raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> event. Similarly to
the <see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0,``0,System.Action{``0},System.String)" /> method, this overload should only be
used when <see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0@,``0,System.String)" /> can't be used directly.
</summary>
<returns>
<see langword="true" /> if the property was changed, <see langword="false" /> otherwise.</returns>
<remarks>
This method is just like <see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0,``0,System.Action{``0},System.String)" />, just with the addition
of the <paramref name="validate" /> parameter. As such, following the behavior of the base method,
the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> and <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> events
are not raised if the current and new value for the target property are the same.
</remarks>
</Docs>
</Member>
<Member MemberName="SetProperty<T>">
<MemberSignature Language="C#" Value="protected bool SetProperty<T> (ref T field, T newValue, System.Collections.Generic.IEqualityComparer<T> comparer, bool validate, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool SetProperty<T>(!!T& field, !!T newValue, class System.Collections.Generic.IEqualityComparer`1<!!T> comparer, bool validate, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``1(``0@,``0,System.Collections.Generic.IEqualityComparer{``0},System.Boolean,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function SetProperty(Of T) (ByRef field As T, newValue As T, comparer As IEqualityComparer(Of T), validate As Boolean, Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="override this.SetProperty : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> * bool * string -> bool" Usage="observableValidator.SetProperty (field, newValue, comparer, validate, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="field" Type="T" RefType="ref" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer<T>" />
<Parameter Name="validate" Type="System.Boolean" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="field">The field storing the property's value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> instance to use to compare the input values.</param>
<param name="validate">If <see langword="true" />, <paramref name="newValue" /> will also be validated.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Compares the current and new values for a given property. If the value has changed,
raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> event, updates the property with
the new value, then raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> event.
See additional notes about this overload in <see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``1(``0@,``0,System.Boolean,System.String)" />.
</summary>
<returns>
<see langword="true" /> if the property was changed, <see langword="false" /> otherwise.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SetProperty<T>">
<MemberSignature Language="C#" Value="protected bool SetProperty<T> (T oldValue, T newValue, System.Collections.Generic.IEqualityComparer<T> comparer, Action<T> callback, bool validate, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool SetProperty<T>(!!T oldValue, !!T newValue, class System.Collections.Generic.IEqualityComparer`1<!!T> comparer, class System.Action`1<!!T> callback, bool validate, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``1(``0,``0,System.Collections.Generic.IEqualityComparer{``0},System.Action{``0},System.Boolean,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function SetProperty(Of T) (oldValue As T, newValue As T, comparer As IEqualityComparer(Of T), callback As Action(Of T), validate As Boolean, Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="override this.SetProperty : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> * Action<'T> * bool * string -> bool" Usage="observableValidator.SetProperty (oldValue, newValue, comparer, callback, validate, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer<T>" />
<Parameter Name="callback" Type="System.Action<T>" />
<Parameter Name="validate" Type="System.Boolean" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> instance to use to compare the input values.</param>
<param name="callback">A callback to invoke to update the property value.</param>
<param name="validate">If <see langword="true" />, <paramref name="newValue" /> will also be validated.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Compares the current and new values for a given property. If the value has changed,
raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> event, updates the property with
the new value, then raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> event.
See additional notes about this overload in <see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``1(``0,``0,System.Action{``0},System.Boolean,System.String)" />.
</summary>
<returns>
<see langword="true" /> if the property was changed, <see langword="false" /> otherwise.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SetProperty<TModel,T>">
<MemberSignature Language="C#" Value="protected bool SetProperty<TModel,T> (T oldValue, T newValue, TModel model, Action<TModel,T> callback, bool validate, string? propertyName = default) where TModel : class;" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool SetProperty<class TModel, T>(!!T oldValue, !!T newValue, !!TModel model, class System.Action`2<!!TModel, !!T> callback, bool validate, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``2(``1,``1,``0,System.Action{``0,``1},System.Boolean,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function SetProperty(Of TModel As Class, T As Class) (oldValue As T, newValue As T, model As TModel, callback As Action(Of TModel, T), validate As Boolean, Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="override this.SetProperty : 'T * 'T * 'Model * Action<'Model, 'T (requires 'Model : null)> * bool * string -> bool (requires 'Model : null)" Usage="observableValidator.SetProperty (oldValue, newValue, model, callback, validate, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TModel">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="model" Type="TModel" />
<Parameter Name="callback" Type="System.Action<TModel,T>" />
<Parameter Name="validate" Type="System.Boolean" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="TModel">The type of model whose property (or field) to set.</typeparam>
<typeparam name="T">The type of property (or field) to set.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="model">The model </param>
<param name="callback">The callback to invoke to set the target property value, if a change has occurred.</param>
<param name="validate">If <see langword="true" />, <paramref name="newValue" /> will also be validated.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Compares the current and new values for a given nested property. If the value has changed,
raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> event, updates the property and then raises the
<see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> event. The behavior mirrors that of
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``2(``1,``1,``0,System.Action{``0,``1},System.String)" />, with the difference being that this
method is used to relay properties from a wrapped model in the current instance. For more info, see the docs for
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``2(``1,``1,``0,System.Action{``0,``1},System.String)" />.
</summary>
<returns>
<see langword="true" /> if the property was changed, <see langword="false" /> otherwise.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SetProperty<TModel,T>">
<MemberSignature Language="C#" Value="protected bool SetProperty<TModel,T> (T oldValue, T newValue, System.Collections.Generic.IEqualityComparer<T> comparer, TModel model, Action<TModel,T> callback, bool validate, string? propertyName = default) where TModel : class;" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool SetProperty<class TModel, T>(!!T oldValue, !!T newValue, class System.Collections.Generic.IEqualityComparer`1<!!T> comparer, !!TModel model, class System.Action`2<!!TModel, !!T> callback, bool validate, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.SetProperty``2(``1,``1,System.Collections.Generic.IEqualityComparer{``1},``0,System.Action{``0,``1},System.Boolean,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function SetProperty(Of TModel As Class, T As Class) (oldValue As T, newValue As T, comparer As IEqualityComparer(Of T), model As TModel, callback As Action(Of TModel, T), validate As Boolean, Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="override this.SetProperty : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> * 'Model * Action<'Model, 'T (requires 'Model : null)> * bool * string -> bool (requires 'Model : null)" Usage="observableValidator.SetProperty (oldValue, newValue, comparer, model, callback, validate, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TModel">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer<T>" />
<Parameter Name="model" Type="TModel" />
<Parameter Name="callback" Type="System.Action<TModel,T>" />
<Parameter Name="validate" Type="System.Boolean" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="TModel">The type of model whose property (or field) to set.</typeparam>
<typeparam name="T">The type of property (or field) to set.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> instance to use to compare the input values.</param>
<param name="model">The model </param>
<param name="callback">The callback to invoke to set the target property value, if a change has occurred.</param>
<param name="validate">If <see langword="true" />, <paramref name="newValue" /> will also be validated.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Compares the current and new values for a given nested property. If the value has changed,
raises the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanging" /> event, updates the property and then raises the
<see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.PropertyChanged" /> event. The behavior mirrors that of
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``2(``1,``1,System.Collections.Generic.IEqualityComparer{``1},``0,System.Action{``0,``1},System.String)" />,
with the difference being that this method is used to relay properties from a wrapped model in the
current instance. For more info, see the docs for
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``2(``1,``1,System.Collections.Generic.IEqualityComparer{``1},``0,System.Action{``0,``1},System.String)" />.
</summary>
<returns>
<see langword="true" /> if the property was changed, <see langword="false" /> otherwise.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="System.ComponentModel.INotifyDataErrorInfo.GetErrors">
<MemberSignature Language="C#" Value="System.Collections.IEnumerable INotifyDataErrorInfo.GetErrors (string? propertyName);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance class System.Collections.IEnumerable System.ComponentModel.INotifyDataErrorInfo.GetErrors(string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.System#ComponentModel#INotifyDataErrorInfo#GetErrors(System.String)" />
<MemberSignature Language="VB.NET" Value="Function GetErrors (propertyName As String) As IEnumerable Implements INotifyDataErrorInfo.GetErrors" />
<MemberSignature Language="F#" Value="abstract member System.ComponentModel.INotifyDataErrorInfo.GetErrors : string -> System.Collections.IEnumerable
override this.System.ComponentModel.INotifyDataErrorInfo.GetErrors : string -> System.Collections.IEnumerable" Usage="observableValidator.System.ComponentModel.INotifyDataErrorInfo.GetErrors propertyName" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.ComponentModel.INotifyDataErrorInfo.GetErrors(System.String)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.IEnumerable</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyName" Type="System.String" />
</Parameters>
<Docs>
<param name="propertyName">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TrySetProperty<T>">
<MemberSignature Language="C#" Value="protected bool TrySetProperty<T> (ref T field, T newValue, out System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult> errors, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool TrySetProperty<T>(!!T& field, !!T newValue, [out] class System.Collections.Generic.IReadOnlyCollection`1<class System.ComponentModel.DataAnnotations.ValidationResult>& errors, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.TrySetProperty``1(``0@,``0,System.Collections.Generic.IReadOnlyCollection{System.ComponentModel.DataAnnotations.ValidationResult}@,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function TrySetProperty(Of T) (ByRef field As T, newValue As T, ByRef errors As IReadOnlyCollection(Of ValidationResult), Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.TrySetProperty : 'T * 'T * IReadOnlyCollection * string -> bool" Usage="observableValidator.TrySetProperty (field, newValue, errors, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="field" Type="T" RefType="ref" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="errors" Type="System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult>" RefType="out" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="field">The field storing the property's value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="errors">The resulting validation errors, if any.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Tries to validate a new value for a specified property. If the validation is successful,
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0@,``0,System.String)" /> is called, otherwise no state change is performed.
</summary>
<returns>Whether the validation was successful and the property value changed as well.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TrySetProperty<T>">
<MemberSignature Language="C#" Value="protected bool TrySetProperty<T> (T oldValue, T newValue, Action<T> callback, out System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult> errors, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool TrySetProperty<T>(!!T oldValue, !!T newValue, class System.Action`1<!!T> callback, [out] class System.Collections.Generic.IReadOnlyCollection`1<class System.ComponentModel.DataAnnotations.ValidationResult>& errors, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.TrySetProperty``1(``0,``0,System.Action{``0},System.Collections.Generic.IReadOnlyCollection{System.ComponentModel.DataAnnotations.ValidationResult}@,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function TrySetProperty(Of T) (oldValue As T, newValue As T, callback As Action(Of T), ByRef errors As IReadOnlyCollection(Of ValidationResult), Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.TrySetProperty : 'T * 'T * Action<'T> * IReadOnlyCollection * string -> bool" Usage="observableValidator.TrySetProperty (oldValue, newValue, callback, errors, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="callback" Type="System.Action<T>" />
<Parameter Name="errors" Type="System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult>" RefType="out" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="callback">A callback to invoke to update the property value.</param>
<param name="errors">The resulting validation errors, if any.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Tries to validate a new value for a specified property. If the validation is successful,
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0,``0,System.Action{``0},System.String)" /> is called, otherwise no state change is performed.
</summary>
<returns>Whether the validation was successful and the property value changed as well.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TrySetProperty<T>">
<MemberSignature Language="C#" Value="protected bool TrySetProperty<T> (ref T field, T newValue, System.Collections.Generic.IEqualityComparer<T> comparer, out System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult> errors, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool TrySetProperty<T>(!!T& field, !!T newValue, class System.Collections.Generic.IEqualityComparer`1<!!T> comparer, [out] class System.Collections.Generic.IReadOnlyCollection`1<class System.ComponentModel.DataAnnotations.ValidationResult>& errors, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.TrySetProperty``1(``0@,``0,System.Collections.Generic.IEqualityComparer{``0},System.Collections.Generic.IReadOnlyCollection{System.ComponentModel.DataAnnotations.ValidationResult}@,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function TrySetProperty(Of T) (ByRef field As T, newValue As T, comparer As IEqualityComparer(Of T), ByRef errors As IReadOnlyCollection(Of ValidationResult), Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.TrySetProperty : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> * IReadOnlyCollection * string -> bool" Usage="observableValidator.TrySetProperty (field, newValue, comparer, errors, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="field" Type="T" RefType="ref" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer<T>" />
<Parameter Name="errors" Type="System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult>" RefType="out" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="field">The field storing the property's value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> instance to use to compare the input values.</param>
<param name="errors">The resulting validation errors, if any.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Tries to validate a new value for a specified property. If the validation is successful,
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0@,``0,System.Collections.Generic.IEqualityComparer{``0},System.String)" /> is called, otherwise no state change is performed.
</summary>
<returns>Whether the validation was successful and the property value changed as well.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TrySetProperty<T>">
<MemberSignature Language="C#" Value="protected bool TrySetProperty<T> (T oldValue, T newValue, System.Collections.Generic.IEqualityComparer<T> comparer, Action<T> callback, out System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult> errors, string? propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool TrySetProperty<T>(!!T oldValue, !!T newValue, class System.Collections.Generic.IEqualityComparer`1<!!T> comparer, class System.Action`1<!!T> callback, [out] class System.Collections.Generic.IReadOnlyCollection`1<class System.ComponentModel.DataAnnotations.ValidationResult>& errors, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.TrySetProperty``1(``0,``0,System.Collections.Generic.IEqualityComparer{``0},System.Action{``0},System.Collections.Generic.IReadOnlyCollection{System.ComponentModel.DataAnnotations.ValidationResult}@,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function TrySetProperty(Of T) (oldValue As T, newValue As T, comparer As IEqualityComparer(Of T), callback As Action(Of T), ByRef errors As IReadOnlyCollection(Of ValidationResult), Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.TrySetProperty : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> * Action<'T> * IReadOnlyCollection * string -> bool" Usage="observableValidator.TrySetProperty (oldValue, newValue, comparer, callback, errors, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer<T>" />
<Parameter Name="callback" Type="System.Action<T>" />
<Parameter Name="errors" Type="System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult>" RefType="out" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type of the property that changed.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> instance to use to compare the input values.</param>
<param name="callback">A callback to invoke to update the property value.</param>
<param name="errors">The resulting validation errors, if any.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Tries to validate a new value for a specified property. If the validation is successful,
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``1(``0,``0,System.Collections.Generic.IEqualityComparer{``0},System.Action{``0},System.String)" /> is called, otherwise no state change is performed.
</summary>
<returns>Whether the validation was successful and the property value changed as well.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TrySetProperty<TModel,T>">
<MemberSignature Language="C#" Value="protected bool TrySetProperty<TModel,T> (T oldValue, T newValue, TModel model, Action<TModel,T> callback, out System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult> errors, string? propertyName = default) where TModel : class;" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool TrySetProperty<class TModel, T>(!!T oldValue, !!T newValue, !!TModel model, class System.Action`2<!!TModel, !!T> callback, [out] class System.Collections.Generic.IReadOnlyCollection`1<class System.ComponentModel.DataAnnotations.ValidationResult>& errors, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.TrySetProperty``2(``1,``1,``0,System.Action{``0,``1},System.Collections.Generic.IReadOnlyCollection{System.ComponentModel.DataAnnotations.ValidationResult}@,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function TrySetProperty(Of TModel As Class, T As Class) (oldValue As T, newValue As T, model As TModel, callback As Action(Of TModel, T), ByRef errors As IReadOnlyCollection(Of ValidationResult), Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.TrySetProperty : 'T * 'T * 'Model * Action<'Model, 'T (requires 'Model : null)> * IReadOnlyCollection * string -> bool (requires 'Model : null)" Usage="observableValidator.TrySetProperty (oldValue, newValue, model, callback, errors, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TModel">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="model" Type="TModel" />
<Parameter Name="callback" Type="System.Action<TModel,T>" />
<Parameter Name="errors" Type="System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult>" RefType="out" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="TModel">The type of model whose property (or field) to set.</typeparam>
<typeparam name="T">The type of property (or field) to set.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="model">The model </param>
<param name="callback">The callback to invoke to set the target property value, if a change has occurred.</param>
<param name="errors">The resulting validation errors, if any.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Tries to validate a new value for a specified property. If the validation is successful,
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``2(``1,``1,``0,System.Action{``0,``1},System.String)" /> is called, otherwise no state change is performed.
</summary>
<returns>Whether the validation was successful and the property value changed as well.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TrySetProperty<TModel,T>">
<MemberSignature Language="C#" Value="protected bool TrySetProperty<TModel,T> (T oldValue, T newValue, System.Collections.Generic.IEqualityComparer<T> comparer, TModel model, Action<TModel,T> callback, out System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult> errors, string? propertyName = default) where TModel : class;" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance bool TrySetProperty<class TModel, T>(!!T oldValue, !!T newValue, class System.Collections.Generic.IEqualityComparer`1<!!T> comparer, !!TModel model, class System.Action`2<!!TModel, !!T> callback, [out] class System.Collections.Generic.IReadOnlyCollection`1<class System.ComponentModel.DataAnnotations.ValidationResult>& errors, string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.TrySetProperty``2(``1,``1,System.Collections.Generic.IEqualityComparer{``1},``0,System.Action{``0,``1},System.Collections.Generic.IReadOnlyCollection{System.ComponentModel.DataAnnotations.ValidationResult}@,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function TrySetProperty(Of TModel As Class, T As Class) (oldValue As T, newValue As T, comparer As IEqualityComparer(Of T), model As TModel, callback As Action(Of TModel, T), ByRef errors As IReadOnlyCollection(Of ValidationResult), Optional propertyName As String = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.TrySetProperty : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> * 'Model * Action<'Model, 'T (requires 'Model : null)> * IReadOnlyCollection * string -> bool (requires 'Model : null)" Usage="observableValidator.TrySetProperty (oldValue, newValue, comparer, model, callback, errors, propertyName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TModel">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="oldValue" Type="T" />
<Parameter Name="newValue" Type="T" />
<Parameter Name="comparer" Type="System.Collections.Generic.IEqualityComparer<T>" />
<Parameter Name="model" Type="TModel" />
<Parameter Name="callback" Type="System.Action<TModel,T>" />
<Parameter Name="errors" Type="System.Collections.Generic.IReadOnlyCollection<System.ComponentModel.DataAnnotations.ValidationResult>" RefType="out" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="TModel">The type of model whose property (or field) to set.</typeparam>
<typeparam name="T">The type of property (or field) to set.</typeparam>
<param name="oldValue">The current property value.</param>
<param name="newValue">The property's value after the change occurred.</param>
<param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> instance to use to compare the input values.</param>
<param name="model">The model </param>
<param name="callback">The callback to invoke to set the target property value, if a change has occurred.</param>
<param name="errors">The resulting validation errors, if any.</param>
<param name="propertyName">(optional) The name of the property that changed.</param>
<summary>
Tries to validate a new value for a specified property. If the validation is successful,
<see cref="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.SetProperty``2(``1,``1,System.Collections.Generic.IEqualityComparer{``1},``0,System.Action{``0,``1},System.String)" /> is called, otherwise no state change is performed.
</summary>
<returns>Whether the validation was successful and the property value changed as well.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ValidateAllProperties">
<MemberSignature Language="C#" Value="protected void ValidateAllProperties ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void ValidateAllProperties() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.ValidateAllProperties" />
<MemberSignature Language="VB.NET" Value="Protected Sub ValidateAllProperties ()" />
<MemberSignature Language="F#" Value="member this.ValidateAllProperties : unit -> unit" Usage="observableValidator.ValidateAllProperties " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Validates all the properties in the current instance and updates all the tracked errors.
If any changes are detected, the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.ErrorsChanged" /> event will be raised.
</summary>
<remarks>
Only public instance properties (excluding custom indexers) that have at least one
<see cref="T:System.ComponentModel.DataAnnotations.ValidationAttribute" /> applied to them will be validated. All other
members in the current instance will be ignored. None of the processed properties
will be modified - they will only be used to retrieve their values and validate them.
</remarks>
</Docs>
</Member>
<Member MemberName="ValidateProperty">
<MemberSignature Language="C#" Value="protected void ValidateProperty (object? value, string? propertyName = default);" FrameworkAlternate="win-comm-toolkit-dotnet-7.0" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void ValidateProperty(object value, string propertyName) cil managed" FrameworkAlternate="win-comm-toolkit-dotnet-7.0" />
<MemberSignature Language="DocId" Value="M:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.ValidateProperty(System.Object,System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Sub ValidateProperty (value As Object, Optional propertyName As String = Nothing)" FrameworkAlternate="win-comm-toolkit-dotnet-7.0" />
<MemberSignature Language="F#" Value="member this.ValidateProperty : obj * string -> unit" Usage="observableValidator.ValidateProperty (value, propertyName)" />
<MemberSignature Language="C#" Value="protected internal void ValidateProperty (object? value, string? propertyName = default);" FrameworkAlternate="win-comm-toolkit-dotnet-7.1" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig instance void ValidateProperty(object value, string propertyName) cil managed" FrameworkAlternate="win-comm-toolkit-dotnet-7.1" />
<MemberSignature Language="VB.NET" Value="Protected Friend Sub ValidateProperty (value As Object, Optional propertyName As String = Nothing)" FrameworkAlternate="win-comm-toolkit-dotnet-7.1" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Object" />
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="value">The value to test for the specified property.</param>
<param name="propertyName">The name of the property to validate.</param>
<summary>
Validates a property with a specified name and a given input value.
If any changes are detected, the <see cref="E:Microsoft.Toolkit.Mvvm.ComponentModel.ObservableValidator.ErrorsChanged" /> event will be raised.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="propertyName" /> is <see langword="null" />.</exception>
</Docs>
</Member>
</Members>
</Type>