11 references to ValidateArgument
UIAutomationClient (11)
System\Windows\Automation\AndCondition.cs (1)
33
Misc.
ValidateArgument
( conditions.Length >= 2, nameof(SR.MustBeAtLeastTwoConditions) );
System\Windows\Automation\Automation.cs (6)
128
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) );
129
Misc.
ValidateArgument
( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) );
130
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) );
196
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) );
197
Misc.
ValidateArgument
( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) );
198
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) );
System\Windows\Automation\AutomationElement.cs (1)
425
Misc.
ValidateArgument
(hwnd != IntPtr.Zero, nameof(SR.HwndMustBeNonNULL));
System\Windows\Automation\OrCondition.cs (1)
33
Misc.
ValidateArgument
( conditions.Length >= 2, nameof(SR.MustBeAtLeastTwoConditions) );
System\Windows\Automation\PropertyCondition.cs (1)
144
Misc.
ValidateArgument
(val is string, nameof(SR.IgnoreCaseRequiresString));
System\Windows\Automation\Text\TextRange.cs (1)
218
Misc.
ValidateArgument
(text.Length != 0, nameof(SR.TextMustNotBeNullOrEmpty));