BlobTransferClient.UploadBlob Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UploadBlob(Uri, String, String, FileEncryption, CancellationToken, IRetryPolicy, Func<String>)
public virtual System.Threading.Tasks.Task UploadBlob (Uri url, string localFile, string contentType, Microsoft.WindowsAzure.MediaServices.Client.FileEncryption fileEncryption, System.Threading.CancellationToken cancellationToken, Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy retryPolicy, Func<string> getSharedAccessSignature = default);
abstract member UploadBlob : Uri * string * string * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * Func<string> -> System.Threading.Tasks.Task
override this.UploadBlob : Uri * string * string * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * Func<string> -> System.Threading.Tasks.Task
Public Overridable Function UploadBlob (url As Uri, localFile As String, contentType As String, fileEncryption As FileEncryption, cancellationToken As CancellationToken, retryPolicy As IRetryPolicy, Optional getSharedAccessSignature As Func(Of String) = Nothing) As Task
Parameters
- url
- Uri
- localFile
- String
- contentType
- String
- fileEncryption
- FileEncryption
- cancellationToken
- CancellationToken
- retryPolicy
- IRetryPolicy
Returns
Applies to
UploadBlob(Uri, String, Stream, String, FileEncryption, CancellationToken, IRetryPolicy, Func<String>)
public virtual System.Threading.Tasks.Task UploadBlob (Uri url, string name, System.IO.Stream stream, string contentType, Microsoft.WindowsAzure.MediaServices.Client.FileEncryption fileEncryption, System.Threading.CancellationToken cancellationToken, Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy retryPolicy, Func<string> getSharedAccessSignature = default);
abstract member UploadBlob : Uri * string * System.IO.Stream * string * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * Func<string> -> System.Threading.Tasks.Task
override this.UploadBlob : Uri * string * System.IO.Stream * string * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * Func<string> -> System.Threading.Tasks.Task
Public Overridable Function UploadBlob (url As Uri, name As String, stream As Stream, contentType As String, fileEncryption As FileEncryption, cancellationToken As CancellationToken, retryPolicy As IRetryPolicy, Optional getSharedAccessSignature As Func(Of String) = Nothing) As Task
Parameters
- url
- Uri
- name
- String
- stream
- Stream
- contentType
- String
- fileEncryption
- FileEncryption
- cancellationToken
- CancellationToken
- retryPolicy
- IRetryPolicy
Returns
Applies to
UploadBlob(Uri, String, FileEncryption, CancellationToken, CloudBlobClient, IRetryPolicy, String, String, Func<String>)
public virtual System.Threading.Tasks.Task UploadBlob (Uri url, string localFile, Microsoft.WindowsAzure.MediaServices.Client.FileEncryption fileEncryption, System.Threading.CancellationToken cancellationToken, Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient client, Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy retryPolicy, string contentType = default, string subDirectory = "", Func<string> getSharedAccessSignature = default);
abstract member UploadBlob : Uri * string * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * string * string * Func<string> -> System.Threading.Tasks.Task
override this.UploadBlob : Uri * string * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * string * string * Func<string> -> System.Threading.Tasks.Task
Public Overridable Function UploadBlob (url As Uri, localFile As String, fileEncryption As FileEncryption, cancellationToken As CancellationToken, client As CloudBlobClient, retryPolicy As IRetryPolicy, Optional contentType As String = Nothing, Optional subDirectory As String = "", Optional getSharedAccessSignature As Func(Of String) = Nothing) As Task
Parameters
- url
- Uri
- localFile
- String
- fileEncryption
- FileEncryption
- cancellationToken
- CancellationToken
- client
- CloudBlobClient
- retryPolicy
- IRetryPolicy
- contentType
- String
- subDirectory
- String
Returns
Applies to
UploadBlob(Uri, String, Stream, FileEncryption, CancellationToken, CloudBlobClient, IRetryPolicy, String, String, Func<String>)
public virtual System.Threading.Tasks.Task UploadBlob (Uri url, string name, System.IO.Stream stream, Microsoft.WindowsAzure.MediaServices.Client.FileEncryption fileEncryption, System.Threading.CancellationToken cancellationToken, Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient client, Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy retryPolicy, string contentType = default, string subDirectory = "", Func<string> getSharedAccessSignature = default);
abstract member UploadBlob : Uri * string * System.IO.Stream * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * string * string * Func<string> -> System.Threading.Tasks.Task
override this.UploadBlob : Uri * string * System.IO.Stream * Microsoft.WindowsAzure.MediaServices.Client.FileEncryption * System.Threading.CancellationToken * Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient * Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy * string * string * Func<string> -> System.Threading.Tasks.Task
Public Overridable Function UploadBlob (url As Uri, name As String, stream As Stream, fileEncryption As FileEncryption, cancellationToken As CancellationToken, client As CloudBlobClient, retryPolicy As IRetryPolicy, Optional contentType As String = Nothing, Optional subDirectory As String = "", Optional getSharedAccessSignature As Func(Of String) = Nothing) As Task
Parameters
- url
- Uri
- name
- String
- stream
- Stream
- fileEncryption
- FileEncryption
- cancellationToken
- CancellationToken
- client
- CloudBlobClient
- retryPolicy
- IRetryPolicy
- contentType
- String
- subDirectory
- String
Returns
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET