Application.SaveToXml Method

Saves the XML definition of a package to a file.

Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

public:
void SaveToXml (
	String^ fileName, 
	Package^ package, 
	IDTSEvents^ events
)
public void SaveToXml (
	String fileName, 
	Package package, 
	IDTSEvents events
)
public function SaveToXml (
	fileName : String, 
	package : Package, 
	events : IDTSEvents
)

Parameters

fileName

The name of the file to save.

package

The package object to save.

events

An IDTSEvents object.

A package file normally has the extension .dtsx.

If the file name specified in the fileName parameter does not exist, it will be created.


The following example saves the .dtsx package in XML format with the name myXMLPackage.dtsx.

No code example is currently available or this language may not be supported.

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

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

ADD
Show: