11 references to ValidateArgument
UIAutomationClient (11)
System\Windows\Automation\AndCondition.cs (1)
37
Misc.
ValidateArgument
( conditions.Length >= 2, nameof(SR.MustBeAtLeastTwoConditions) );
System\Windows\Automation\Automation.cs (6)
134
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) );
135
Misc.
ValidateArgument
( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) );
136
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) );
205
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) );
206
Misc.
ValidateArgument
( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) );
207
Misc.
ValidateArgument
( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) );
System\Windows\Automation\AutomationElement.cs (1)
428
Misc.
ValidateArgument
(hwnd != IntPtr.Zero, nameof(SR.HwndMustBeNonNULL));
System\Windows\Automation\OrCondition.cs (1)
36
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)
221
Misc.
ValidateArgument
(text.Length != 0, nameof(SR.TextMustNotBeNullOrEmpty));