XmlTestWriter.Write 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| Write(String, Object[]) |
序列化每个提供的测试对象并将生成的 XML 写入指定的 XML 文件。 |
| Write(String, Object[], Formatting) |
序列化每个提供的测试对象,并使用指定的 XML 格式将生成的 XML 写入指定的 XML 文件。 |
Write(String, Object[])
序列化每个提供的测试对象并将生成的 XML 写入指定的 XML 文件。
public:
void Write(System::String ^ destination, cli::array <System::Object ^> ^ tests);
public void Write (string destination, object[] tests);
member this.Write : string * obj[] -> unit
Public Sub Write (destination As String, tests As Object())
参数
- destination
- String
要写入的文件的名称。
- tests
- Object[]
测试对象的数组。
适用于
Write(String, Object[], Formatting)
序列化每个提供的测试对象,并使用指定的 XML 格式将生成的 XML 写入指定的 XML 文件。
public:
void Write(System::String ^ destination, cli::array <System::Object ^> ^ tests, System::Xml::Formatting formatting);
public void Write (string destination, object[] tests, System.Xml.Formatting formatting);
member this.Write : string * obj[] * System.Xml.Formatting -> unit
Public Sub Write (destination As String, tests As Object(), formatting As Formatting)
参数
- destination
- String
要写入的文件的名称。
- tests
- Object[]
测试对象的数组。
- formatting
- Formatting
Formatting 值之一。