Language

UITest.Create Method (Stream)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new UITest by deserializing XML from the provided stream.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration (in Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    reader As Stream _
) As UITest
'Usage
Dim reader As Stream
Dim returnValue As UITest

returnValue = UITest.Create(reader)
public static UITest Create(
    Stream reader
)
public:
static UITest^ Create(
    Stream^ reader
)
static member Create : 
        reader:Stream -> UITest 
public static function Create(
    reader : Stream
) : UITest

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITest
A new UI test object.

Exceptions

Exception Condition
InvalidOperationException

Input XML could not be validated.

.NET Framework Security

See Also

Reference

UITest Class

UITest Members

Create Overload

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace