Delen via


ITestSettingsHelper.CreateFromFile Method

Creates a test settings object 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 ITestSettings)
IEnumerable<ITestSettings> CreateFromFile(
    string fileName
)
IEnumerable<ITestSettings^>^ CreateFromFile(
    String^ fileName
)
abstract CreateFromFile : 
        fileName:string -> IEnumerable<ITestSettings> 
function CreateFromFile(
    fileName : String
) : IEnumerable<ITestSettings>

Parameters

  • fileName
    Type: String

    The path and file name of the XML file that contains a persisted test settings object.

Return Value

Type: IEnumerable<ITestSettings>
A test settings object.

Exceptions

Exception Condition
XmlSchemaValidationException

The provided XML file failed the schema validation.

TestManagementValidationException

The instantiated test settings object failed validation.

.NET Framework Security

See Also

Reference

ITestSettingsHelper Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestSettings