Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
In a specified list, finds an item that has the matching itemspec.
Parameters
The following table describes the parameters of the FindInList Task.
| Parameter | Description | 
|---|---|
| CaseSensitive | Optional Booleanparameter.If true, the search is case-sensitive; otherwise, it is not. Default value istrue. | 
| FindLastMatch | Optional Booleanparameter.If true, return the last match; otherwise, return the first match. Default value isfalse. | 
| ItemFound | Optional ITaskItem []read-only output parameter.The first matching item found in the list, if any. | 
| ItemSpecToFind | Required Stringparameter.The itemspec to search for. | 
| List | Required ITaskItem []parameter.The list in which to search for the itemspec. | 
| MatchFileNameOnly | Optional Booleanparameter.If true, match against just the file name part of the itemspec; otherwise, match against the whole itemspec. Default value istrue. | 
Remarks
In addition to the parameters listed above, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension Base Class.