CloudBlobContainer.GetBlobReferenceFromServerAsync Method (String, CancellationToken) (Microsoft.WindowsAzure.Storage.Blob)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
CloudBlobContainer.::..GetBlobReferenceFromServerAsync Method (String, CancellationToken)(String^, CancellationToken)(String, CancellationToken)(String, CancellationToken)
Initiates an asynchronous operation that gets a reference to a blob in this container.
Namespace:
Microsoft.WindowsAzure.Storage.Blob
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute]
public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(
string blobName,
CancellationToken cancellationToken
)
C++
public:
[DoesServiceRequestAttribute]
virtual Task<ICloudBlob^>^ GetBlobReferenceFromServerAsync(
String^ blobName,
CancellationToken cancellationToken
)
[<DoesServiceRequestAttribute>]
abstract GetBlobReferenceFromServerAsync :
blobName:string *
cancellationToken:CancellationToken -> Task<ICloudBlob>
[<DoesServiceRequestAttribute>]
override GetBlobReferenceFromServerAsync :
blobName:string *
cancellationToken:CancellationToken -> Task<ICloudBlob>
<DoesServiceRequestAttribute>
Public Overridable Function GetBlobReferenceFromServerAsync (
blobName As String,
cancellationToken As CancellationToken
) As Task(Of ICloudBlob)
Parameters
- blobName
-
Type:
System.StringSystem::String^System.StringSystem.String
A string containing the name of the blob.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type:
System.Threading.Tasks.Task<ICloudBlob>System.Threading.Tasks::Task<ICloudBlob^>^System.Threading.Tasks.Task<ICloudBlob>System.Threading.Tasks.Task(Of ICloudBlob)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the asynchronous operation.
See Also
GetBlobReferenceFromServerAsync Overload
CloudBlobContainer Class
Microsoft.WindowsAzure.Storage.Blob Namespace
Return to top
Initiates an asynchronous operation that gets a reference to a blob in this container.
Syntax
[DoesServiceRequestAttribute] public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync( string blobName, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task<ICloudBlob^>^ GetBlobReferenceFromServerAsync( String^ blobName, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract GetBlobReferenceFromServerAsync : blobName:string * cancellationToken:CancellationToken -> Task<ICloudBlob> [<DoesServiceRequestAttribute>] override GetBlobReferenceFromServerAsync : blobName:string * cancellationToken:CancellationToken -> Task<ICloudBlob>
<DoesServiceRequestAttribute> Public Overridable Function GetBlobReferenceFromServerAsync ( blobName As String, cancellationToken As CancellationToken ) As Task(Of ICloudBlob)
Parameters
- blobName
-
Type:
System.StringSystem::String^System.StringSystem.String
A string containing the name of the blob.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.Task<ICloudBlob>System.Threading.Tasks::Task<ICloudBlob^>^System.Threading.Tasks.Task<ICloudBlob>System.Threading.Tasks.Task(Of ICloudBlob)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the asynchronous operation.
See Also
GetBlobReferenceFromServerAsync Overload
CloudBlobContainer Class
Microsoft.WindowsAzure.Storage.Blob Namespace