共用方式為


BlobClient.Upload Method

Definition

Overloads

Upload(String, BlobUploadOptions, CancellationToken)

The Upload(String, BlobUploadOptions, CancellationToken) operation overwrites the contents of the blob, creating a new block blob if none exists. Overwriting an existing block blob replaces any existing metadata on the blob.

Set access conditions through Conditions to avoid overwriting existing data.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(Stream, Boolean, CancellationToken)

The Upload(Stream, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(Stream, BlobUploadOptions, CancellationToken)

The Upload(Stream, BlobUploadOptions, CancellationToken) operation overwrites the contents of the blob, creating a new block blob if none exists. Overwriting an existing block blob replaces any existing metadata on the blob.

Set access conditions through Conditions to avoid overwriting existing data.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(BinaryData, Boolean, CancellationToken)

The Upload(BinaryData, Boolean, CancellationToken) operation creates a new block blob or throws if the blob already exists. Setting overwrite to true allows updating the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(String, Boolean, CancellationToken)

The Upload(String, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(String, CancellationToken)

The Upload(String, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(Stream, CancellationToken)

The Upload(Stream, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(BinaryData, CancellationToken)

The Upload(BinaryData, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(String)

The Upload(String) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(Stream)

The Upload(Stream) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(BinaryData)

The Upload(BinaryData) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(BinaryData, BlobUploadOptions, CancellationToken)

The Upload(BinaryData, BlobUploadOptions, CancellationToken) operation overwrites the contents of the blob, creating a new block blob if none exists. Overwriting an existing block blob replaces any existing metadata on the blob.

Set access conditions through Conditions to avoid overwriting existing data.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

Upload(String, BlobUploadOptions, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(String, BlobUploadOptions, CancellationToken) operation overwrites the contents of the blob, creating a new block blob if none exists. Overwriting an existing block blob replaces any existing metadata on the blob.

Set access conditions through Conditions to avoid overwriting existing data.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (string path, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member Upload : string * Azure.Storage.Blobs.Models.BlobUploadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : string * Azure.Storage.Blobs.Models.BlobUploadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (path As String, options As BlobUploadOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobContentInfo)

Parameters

path
String

A file path containing the content to upload.

options
BlobUploadOptions

Optional parameters.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(Stream, Boolean, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(Stream, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (System.IO.Stream content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default);
abstract member Upload : System.IO.Stream * bool * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : System.IO.Stream * bool * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As Stream, Optional overwrite As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobContentInfo)

Parameters

content
Stream

A Stream containing the content to upload.

overwrite
Boolean

Whether the upload should overwrite any existing blobs. The default value is false.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(Stream, BlobUploadOptions, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(Stream, BlobUploadOptions, CancellationToken) operation overwrites the contents of the blob, creating a new block blob if none exists. Overwriting an existing block blob replaces any existing metadata on the blob.

Set access conditions through Conditions to avoid overwriting existing data.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (System.IO.Stream content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member Upload : System.IO.Stream * Azure.Storage.Blobs.Models.BlobUploadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : System.IO.Stream * Azure.Storage.Blobs.Models.BlobUploadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As Stream, options As BlobUploadOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobContentInfo)

Parameters

content
Stream

A Stream containing the content to upload.

options
BlobUploadOptions

Optional parameters.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(BinaryData, Boolean, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(BinaryData, Boolean, CancellationToken) operation creates a new block blob or throws if the blob already exists. Setting overwrite to true allows updating the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (BinaryData content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default);
abstract member Upload : BinaryData * bool * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : BinaryData * bool * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As BinaryData, Optional overwrite As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobContentInfo)

Parameters

content
BinaryData

A Stream containing the content to upload.

overwrite
Boolean

Whether the upload should overwrite any existing blobs. The default value is false.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(String, Boolean, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(String, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (string path, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default);
abstract member Upload : string * bool * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : string * bool * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (path As String, Optional overwrite As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobContentInfo)

Parameters

path
String

A file path containing the content to upload.

overwrite
Boolean

Whether the upload should overwrite any existing blobs. The default value is false.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(String, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(String, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (string path, System.Threading.CancellationToken cancellationToken);
abstract member Upload : string * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : string * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (path As String, cancellationToken As CancellationToken) As Response(Of BlobContentInfo)

Parameters

path
String

A file path containing the content to upload.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(Stream, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(Stream, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (System.IO.Stream content, System.Threading.CancellationToken cancellationToken);
abstract member Upload : System.IO.Stream * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : System.IO.Stream * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As Stream, cancellationToken As CancellationToken) As Response(Of BlobContentInfo)

Parameters

content
Stream

A Stream containing the content to upload.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(BinaryData, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(BinaryData, CancellationToken) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (BinaryData content, System.Threading.CancellationToken cancellationToken);
abstract member Upload : BinaryData * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : BinaryData * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As BinaryData, cancellationToken As CancellationToken) As Response(Of BlobContentInfo)

Parameters

content
BinaryData

A BinaryData containing the content to upload.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(String)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(String) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (string path);
abstract member Upload : string -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : string -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (path As String) As Response(Of BlobContentInfo)

Parameters

path
String

A file path containing the content to upload.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(Stream)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(Stream) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (System.IO.Stream content);
abstract member Upload : System.IO.Stream -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : System.IO.Stream -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As Stream) As Response(Of BlobContentInfo)

Parameters

content
Stream

A Stream containing the content to upload.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(BinaryData)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(BinaryData) operation creates a new block blob or throws if the blob already exists.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (BinaryData content);
abstract member Upload : BinaryData -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : BinaryData -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As BinaryData) As Response(Of BlobContentInfo)

Parameters

content
BinaryData

A BinaryData containing the content to upload.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Upload(BinaryData, BlobUploadOptions, CancellationToken)

Source:
BlobClient.cs
Source:
BlobClient.cs

The Upload(BinaryData, BlobUploadOptions, CancellationToken) operation overwrites the contents of the blob, creating a new block blob if none exists. Overwriting an existing block blob replaces any existing metadata on the blob.

Set access conditions through Conditions to avoid overwriting existing data.

For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or append blobs, please see PageBlobClient or AppendBlobClient.

For more information, see Put Blob.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo> Upload (BinaryData content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member Upload : BinaryData * Azure.Storage.Blobs.Models.BlobUploadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
override this.Upload : BinaryData * Azure.Storage.Blobs.Models.BlobUploadOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobContentInfo>
Public Overridable Function Upload (content As BinaryData, options As BlobUploadOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobContentInfo)

Parameters

content
BinaryData

A BinaryData containing the content to upload.

options
BlobUploadOptions

Optional parameters.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated block blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to