Export (0) Print
Expand All

StepResult.XmlSerializeToFile Method

Serializes the properties of the StepResult object into XML and saves the result in the specified file.


Namespace: Microsoft.Hpc.Diagnostics.Helpers
Assembly: Microsoft.Hpc.Diagnostics.Helpers (in Microsoft.Hpc.Diagnostics.Helpers.dll)

'Usage
Dim instance As StepResult
Dim path As String

instance.XmlSerializeToFile(path)

public void XmlSerializeToFile (
	string path
)
public void XmlSerializeToFile (
	String path
)
public function XmlSerializeToFile (
	path : String
)

Parameters

path

String that specifies the name of the file in which to save the XML representation of the StepResult object.

For a StepResult object that you create in the PreStep stage, use a file name of PreStepResult.xml. For the StepResult object that you create for a summary of all the results in the PostStep stage, use a file name of PostStepResult.xml. For the PreStep and PostStep stages, this method automatically saves the file to the current working directory on the head node, which is %CCP_HOME%\SpoolDir\Diagnostics\test run identifier. The diagnostic service checks only this directory for these files, so do not specify a different path. For the RunStep stage, this method saves the file to the %TEMP% folder on the local node. You should copy the file to a share if you want to access it from the head node during the PostStep stage.

The XmlSerializeToFile method converts the public fields and properties of a StepResult object that are both readable and writeable into XML. It does not convert methods, indexers, private fields, or properties that are read-only.

When you want to serialize StepResult objects that contain information about the results of the RunStep stage on individual nodes, use the XmlSerializeToStandardOut method instead.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows Server 2008 R2, Windows Server 2012




Build Date:

2013-04-22

Community Additions

ADD
Show:
© 2014 Microsoft