Windows apps
Collapse the table of content
Expand the table of content

LiveConnectClient.UploadAsync(String, String, IO.Stream, Object) method

Performs an asynchronous upload of a resource with a given path, file name, stream contents, and user state.

Syntax


public UploadAsync(
  string path, 
  string fileName, 
  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.

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

Microsoft.Live.dll

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, Boolean, String, IO.Stream, Object)

 

 

Build date: 4/5/2012

Show:
© 2018 Microsoft