UIAutomation.GetControlCollectionCmdletBase.GetAutomationElementsViaWildcards C# (CSharp) Method

GetAutomationElementsViaWildcards() private method

private GetAutomationElementsViaWildcards ( GetControlCollectionCmdletBase cmdlet, bool caseSensitive, bool onlyOneResult, bool onlyTopLevel ) : List
cmdlet GetControlCollectionCmdletBase
caseSensitive bool
onlyOneResult bool
onlyTopLevel bool
return List
        internal List<IUiElement> GetAutomationElementsViaWildcards(
            GetControlCollectionCmdletBase cmdlet,
            bool caseSensitive,
            bool onlyOneResult,
            bool onlyTopLevel)
        {
            if (!cmdlet.CheckAndPrepareInput(cmdlet)) { return null; }
            
            var resultCollection = new List<IUiElement>();
            
            foreach (IUiElement inputObject in InputObject) {
            
                resultCollection =
                    GetAutomationElementsWithWalker(
                        inputObject,
                        cmdlet.Name,
                        cmdlet.AutomationId,
                        cmdlet.Class,
                        cmdlet.ControlType,
                        caseSensitive,
                        onlyOneResult,
                        onlyTopLevel);
            }
            
            return resultCollection;
        }
        

Same methods

GetControlCollectionCmdletBase::GetAutomationElementsViaWildcards ( IUiElement inputObject, bool caseSensitive, bool onlyOneResult, bool onlyTopLevel ) : void