Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Namespace: Microsoft.VisualStudio.Services.FileContainer.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Function UploadFileAsync ( _
containerId As Long, _
itemPath As String, _
fileStream As Stream, _
cancellationToken As CancellationToken, _
chunkSize As Integer, _
uploadFirstChunk As Boolean, _
userState As Object _
) As Task(Of HttpResponseMessage)
public Task<HttpResponseMessage> UploadFileAsync(
long containerId,
string itemPath,
Stream fileStream,
CancellationToken cancellationToken,
int chunkSize,
bool uploadFirstChunk,
Object userState
)
public:
Task<HttpResponseMessage^>^ UploadFileAsync(
long long containerId,
String^ itemPath,
Stream^ fileStream,
CancellationToken cancellationToken,
int chunkSize,
bool uploadFirstChunk,
Object^ userState
)
member UploadFileAsync :
containerId:int64 *
itemPath:string *
fileStream:Stream *
cancellationToken:CancellationToken *
chunkSize:int *
uploadFirstChunk:bool *
userState:Object -> Task<HttpResponseMessage>
public function UploadFileAsync(
containerId : long,
itemPath : String,
fileStream : Stream,
cancellationToken : CancellationToken,
chunkSize : int,
uploadFirstChunk : boolean,
userState : Object
) : Task<HttpResponseMessage>
Parameters
- containerId
Type: System.Int64
- itemPath
Type: System.String
- fileStream
Type: System.IO.Stream
- cancellationToken
Type: System.Threading.CancellationToken
- chunkSize
Type: System.Int32
- uploadFirstChunk
Type: System.Boolean
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Services.FileContainer.Client Namespace