VintaSoft Imaging .NET SDK v9.1 for .NET (.NET Core and .NET Framework)
Vintasoft.Imaging.Pdf.Tree.FileAttachments Namespace / PdfAttachmentFolder Class / RenameFile Method
The old filename.
The new filename.



In This Topic
    RenameFile Method
    In This Topic
    Renames the file with specified name.
    Syntax
    'Declaration
     
    Public Function RenameFile( _
       ByVal oldFilename As String, _
       ByVal newFilename As String _
    ) As Boolean
    public bool RenameFile( 
       string oldFilename,
       string newFilename
    )
    public: bool RenameFile( 
       string* oldFilename,
       string* newFilename
    ) 
    public:
    bool RenameFile( 
       String^ oldFilename,
       String^ newFilename
    ) 

    Parameters

    oldFilename
    The old filename.
    newFilename
    The new filename.

    Return Value

    true if file is found and renamed; otherwise, false.
    Requirements

    Target Platforms: .NET Core 3; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also