'Declaration Public Overloads Function TaskFromName( _ ByVal name As String, _ ByVal comparisonType As StringComparison _ ) As Task
public Task TaskFromName( string name, StringComparison comparisonType )
Note that since uniqueness is not enforced among the Name property for the tasks which belong to the same project, this method returns the first task in the list. For an unambiguous search, use the TaskFromRowNumber method.
Specifying null or an empty string for the value of the name parameter results in a null return value, regardless of whether any tasks exist in this project that have no name assigned to them.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2