共用方式為


ITestFailureTypeHelper.CreateFromFile Method

Creates test failure type objects from an XML file.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Function CreateFromFile ( _
    fileName As String _
) As IEnumerable(Of ITestFailureType)
IEnumerable<ITestFailureType> CreateFromFile(
    string fileName
)
IEnumerable<ITestFailureType^>^ CreateFromFile(
    String^ fileName
)
abstract CreateFromFile : 
        fileName:string -> IEnumerable<ITestFailureType> 
function CreateFromFile(
    fileName : String
) : IEnumerable<ITestFailureType>

Parameters

  • fileName
    Type: String

    The path of the xml file

Return Value

Type: IEnumerable<ITestFailureType>

Remarks

This method does validation of the xml file against a schema If the schema validation fails, the XmlSchemaValidationException will be thrown, and for other validation, TestManagementValidationException.

.NET Framework Security

See Also

Reference

ITestFailureTypeHelper Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace