| ChunkedUploadSource(WikiSite, Stream, String) Constructor |
This is preliminary documentation and is subject to change.
Initialize an instance from a
Stream.
Namespace: WikiClientLibrary.FilesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public ChunkedUploadSource(
WikiSite site,
Stream sourceStream,
string? fileName
)
Public Sub New (
site As WikiSite,
sourceStream As Stream,
fileName As String
)
Dim site As WikiSite
Dim sourceStream As Stream
Dim fileName As String
Dim instance As New ChunkedUploadSource(site, sourceStream,
fileName)
public:
ChunkedUploadSource(
WikiSite^ site,
Stream^ sourceStream,
String^ fileName
)
new :
site : WikiSite *
sourceStream : Stream *
fileName : string -> ChunkedUploadSource
Parameters
- site WikiSite
- The destination site to upload the file.
- sourceStream Stream
-
The seekable stream containing the file to be uploaded.
The upload will be performed starting from the current position.
- fileName String
-
Optional file name. This parameter can be null, where a dummy file name will be used;
otherwise, it should be a valid file name.
If the name has file extension, the content will be validated by server.
However, the name can be different from the actual uploaded file.
Exceptions See Also