SharePointFileInfoProviderUpdateFileInternal 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: 11.0.0
Syntax protected virtual void UpdateFileInternal(
SharePointFileInfo fileInfo,
Stream contentStream,
string newFileName
)
Parameters
- fileInfo
- Type: CMS.SharePointSharePointFileInfo
SharePoint file to be updated. - contentStream
- Type: System.IOStream
Stream containing the new file's binary content. - newFileName
- Type: SystemString
File name of the updated file.
Exceptions See Also