SharePointFileInfoProviderUpdateFile Method |
Updates file in SharePoint library with new content and name.
The newFileName can be the same as the old one.
The updated file is immediately available both on the SharePoint server and locally in the library.
Namespace: CMS.SharePointAssembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 8.2.23
Syntax public static void UpdateFile(
SharePointFileInfo fileInfo,
Stream contentStream,
string newFileName
)
Parameters
- fileInfo
- Type: CMS.SharePointSharePointFileInfo
SharePoint file to be updated. - contentStream
- Type: CMS.IOStream
Stream containing the new file's binary content. - newFileName
- Type: SystemString
File name of the updated file.
Exceptions See Also