SharedWorkspaceFiles.Add(String, Object, Object, Object) Method

Definition

Adds a file to the document library in a shared workspace.

public Microsoft.Office.Core.SharedWorkspaceFile Add (string FileName, object ParentFolder, object OverwriteIfFileAlreadyExists, object KeepInSync);
abstract member Add : string * obj * obj * obj -> Microsoft.Office.Core.SharedWorkspaceFile
Public Function Add (FileName As String, Optional ParentFolder As Object, Optional OverwriteIfFileAlreadyExists As Object, Optional KeepInSync As Object) As SharedWorkspaceFile

Parameters

FileName
String

Required String. The path and filename of the file to be added to the current shared workspace.

ParentFolder
Object

Optional SharedWorkspaceFolder. The subfolder in which to place the file, if not the main document library folder within the shared workspace. Add the file to the main document library folder by leaving this optional argument empty.

OverwriteIfFileAlreadyExists
Object

Optional Boolean. True to overwrite an existing file by the same name. Default is False.

KeepInSync
Object

Optional Boolean. True to keep the local copy of the document synchronized with the copy in the shared workspace. Default is False.

Returns

Applies to