Click or drag to resize
ISharePointFileGetContentStream Method
Gets the file's content as a stream.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 10.0.0
Syntax
C#
Stream GetContentStream()

Return Value

Type: Stream
Stream providing SharePoint file's binary data
Exceptions
ExceptionCondition
FileNotFoundExceptionThrown when requested file is not present at SharePoint server.
SharePointServerExceptionThrown whenever server error occurs.
WebExceptionThrown when error related to network or protocol occurs.
SharePointConnectionNotSupportedExceptionThrown when given connectionData contains unsupported authentication mode or invalid URL.
SharePointCCSDKExceptionThrown when identity client library "msoidcliL.dll" needed for SharePoint Online authentication is missing. See documentation for details.
ExceptionThrown in case of unexpected error condition.
See Also