Performs an asynchronous upload of a resource with a given path, file name, stream contents, user state, and the option to overwrite an existing file.
Syntax
public UploadAsync( string path, string fileName, bool overwriteExisting, IO.Stream inputStream, object userState )
Parameters
- path
-
Type: String
The destination path for the upload.
- fileName
-
Type: String
The name of the file to be uploaded.
- overwriteExisting
-
Type: Boolean
Indicates whether the existing file should be overwritten.
- inputStream
-
Type: IO.Stream
The stream to add to the body of the API request.
- userState
-
Type: Object
Used to uniquely identify the call. The userState object is passed back to the user when the call is completed.
Remarks
UploadAsync supports all paths and methods in the Representational State Transfer (REST) API.
Requirements
|
Minimum supported client | Windows 8 Consumer Preview |
|---|---|
|
Minimum supported phone | Windows Phone 7 |
|
Minimum supported server | None supported |
|
Namespace |
Microsoft.Live |
|
Assembly |
|
See also
- LiveConnectClient
- UploadAsync(String, String, IStorageFile)
- UploadAsync(String, String, IStorageFile, Boolean)
- UploadAsync(String, String, IStorageFile, Boolean, Object)
- UploadAsync(String, String, IO.Stream)
- UploadAsync(String, String, IO.Stream, Object)
Build date: 4/5/2012