_Application.CopyFile Method
Copies a file from a specified location into a Microsoft Outlook store.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
Function CopyFile ( _
FilePath As String, _
DestFolderPath As String _
) As Object
'Usage
Dim instance As _Application
Dim FilePath As String
Dim DestFolderPath As String
Dim returnValue As Object
returnValue = instance.CopyFile(FilePath, _
DestFolderPath)
Object CopyFile(
string FilePath,
string DestFolderPath
)
Parameters
- FilePath
Type: System.String
The path name of the object you want to copy.
- DestFolderPath
Type: System.String
The location you want to copy the file to.
Return Value
Type: System.Object
An Object value that represents the copied file.