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