SharedWorkspaceFiles.Add(String, Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應