Share via


OpenXmlPackage.SaveAs(String) Method

Definition

Caution

This API will be removed in future release. Instead, use Clone() as it does the same thing

Saves the contents of all parts and relationships that are contained in the OpenXml package to the specified file. Opens the saved document using the same settings that were used to open this OpenXml package.

public DocumentFormat.OpenXml.Packaging.OpenXmlPackage SaveAs (string path);
[System.Obsolete("This API will be removed in future release. Instead, use Clone() as it does the same thing")]
public DocumentFormat.OpenXml.Packaging.OpenXmlPackage SaveAs (string path);
member this.SaveAs : string -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
[<System.Obsolete("This API will be removed in future release. Instead, use Clone() as it does the same thing")>]
member this.SaveAs : string -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Public Function SaveAs (path As String) As OpenXmlPackage

Parameters

path
String

The path and file name of the target document.

Returns

The cloned OpenXml package

Attributes

Remarks

Calling SaveAs(string) is exactly equivalent to calling Clone(string). This method is essentially provided for convenience.

Applies to