ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / Presentation Class / SaveAsFile Method
A string representing the full path of the output file.
Set to true to overwrite the prsx file if it already exists

In This Topic
    SaveAsFile Method (Presentation)
    In This Topic
    Exports a presentation to a new presentation (.prsx) file. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SaveAsFile( 
       string fullPathToPrsxFile,
       bool overwrite
    )
    Public Sub SaveAsFile( _
       ByVal fullPathToPrsxFile As String, _
       ByVal overwrite As Boolean _
    ) 

    Parameters

    fullPathToPrsxFile
    A string representing the full path of the output file.
    overwrite
    Set to true to overwrite the prsx file if it already exists
    Exceptions
    ExceptionDescription
    value fullPathToPrsxFile cannot be null
    This method must be called within the lambda passed to QueuedTask.Run.
    Remarks
    A copy of the presentation's definition is saved to file. A presentation file can be imported into another project using the ItemFactory Class. A suffix of .prsx is added if the filename does not have one or has a different suffix. To overwrite an existing file of the same name, set overwrite = true.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also