XmlTestWriter.Write Method (String, array<Object , Formatting)
Serializes each provided test object and writes the resulting XML to the specified XML file by using the specified XML formatting.
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
Public Sub Write ( _
destination As String, _
tests As Object(), _
formatting As Formatting _
)
public void Write(
string destination,
Object[] tests,
Formatting formatting
)
public:
void Write(
String^ destination,
array<Object^>^ tests,
Formatting formatting
)
member Write :
destination:string *
tests:Object[] *
formatting:Formatting -> unit
public function Write(
destination : String,
tests : Object[],
formatting : Formatting
)
Parameters
- destination
Type: System.String
The name of the file to write to.
- tests
Type: array<System.Object[]
An array of test objects.
- formatting
Type: System.Xml.Formatting
One of the Formatting values.
.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.