XslCompiledTransform.TemporaryFiles Property

Note: This property is new in the .NET Framework version 2.0.

Gets the TempFileCollection that contains the temporary files generated on disk after a successful call to the Load method.

Namespace: System.Xml.Xsl
Assembly: System.Xml (in system.xml.dll)

public TempFileCollection TemporaryFiles { get; }
/** @property */
public TempFileCollection get_TemporaryFiles ()

public function get TemporaryFiles () : TempFileCollection

Property Value

The TempFileCollection that contains the temporary files generated on disk. This value is a null reference (Nothing in Visual Basic) if the Load method has not been successfully called, or if debugging has not been enabled.

This property identifies the files that were generated during XSLT processing. The files are placed in your Temp directory (specified by the %TEMP% environment variable) You can delete these files after the XSLT processing has completed.

The following example shows how to delete the temporary files programmatically.

// Load the style sheet for debugging.
XslCompiledTransform xslt = new XslCompiledTransform(true);

// Transform the file.
xslt.Transform("books.xml", "output.xml");

// Delete the temporary files.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0