UITest.Create Method (String)
[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 using the given filename.
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 ( _
uitestFile As String _
) As UITest
'Usage
Dim uitestFile As String
Dim returnValue As UITest
returnValue = UITest.Create(uitestFile)
public static UITest Create(
string uitestFile
)
public:
static UITest^ Create(
String^ uitestFile
)
static member Create :
uitestFile:string -> UITest
public static function Create(
uitestFile : String
) : UITest
Parameters
- uitestFile
Type: System.String
The path and name of a file.
Return Value
Type: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITest
A new UI test object.
Exceptions
| Exception | Condition |
|---|---|
| [FileNotFoundException] | The provided filename is invalid. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace