ITestResolutionStateHelper.CreateFromFile 方法 (String)

 

发布时间: 2016年4月

从 XML 文件创建一个测试解决状态对象。

命名空间:   Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(Microsoft.TeamFoundation.TestManagement.Client.dll 中)

语法

IEnumerable<ITestResolutionState> CreateFromFile(
    string fileName
)
IEnumerable<ITestResolutionState^>^ CreateFromFile(
    String^ fileName
)
abstract CreateFromFile : 
        fileName:string -> IEnumerable<ITestResolutionState>
Function CreateFromFile (
    fileName As String
) As IEnumerable(Of ITestResolutionState)

参数

  • fileName
    Type: System.String

    包含一个保留的测试解决状态对象的 XML 文件路径和文件名称。

返回值

Type: System.Collections.Generic.IEnumerable<ITestResolutionState>

测试解决状态对象。

异常

Exception Condition
XmlSchemaValidationException

提供的 XML 文件的架构验证失败。

TestManagementValidationException

实例化的测试解析状态对象验证失败。

请参阅

ITestResolutionState
ITestResolutionStateHelper 接口
Microsoft.TeamFoundation.TestManagement.Client 命名空间

返回页首