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