Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System.Xml.Xsl
 TemporaryFiles Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
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)

Visual Basic (Declaration)
Public ReadOnly Property TemporaryFiles As TempFileCollection
Visual Basic (Usage)
Dim instance As XslCompiledTransform
Dim value As TempFileCollection

value = instance.TemporaryFiles
C#
public TempFileCollection TemporaryFiles { get; }
C++
public:
property TempFileCollection^ TemporaryFiles {
    TempFileCollection^ get ();
}
J#
/** @property */
public TempFileCollection get_TemporaryFiles ()
JScript
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.

Visual Basic
' Load the style sheet for debugging.
Dim xslt As New XslCompiledTransform(true)
xslt.Load("output.xsl")

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

' Delete the temporary files.
xslt.TemporaryFiles.Delete()
C#
// Load the style sheet for debugging.
XslCompiledTransform xslt = new XslCompiledTransform(true);
xslt.Load("output.xsl");

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

// Delete the temporary files.
xslt.TemporaryFiles.Delete();

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker