CloudBlobContainer.GetBlockBlobReference Method (String, Nullable)

Windows Runtime Azure Storage Client Library

Gets a reference to a block blob in this container.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As CloudBlobContainer
Dim blobName As String
Dim snapshotTime As Nullable(Of DateTimeOffset)
Dim returnValue As CloudBlockBlob

returnValue = instance.GetBlockBlobReference(blobName, snapshotTime)

Syntax

Visual Basic
Public Function GetBlockBlobReference ( _
	blobName As String, _
	snapshotTime As Nullable(Of DateTimeOffset) _
) As CloudBlockBlob
C#
public CloudBlockBlob GetBlockBlobReference (
	string blobName,
	Nullable<DateTimeOffset> snapshotTime
)
C++
public:
CloudBlockBlob^ GetBlockBlobReference (
	String^ blobName, 
	Nullable<DateTimeOffset> snapshotTime
)
J#
public CloudBlockBlob GetBlockBlobReference (
	String blobName, 
	Nullable<DateTimeOffset> snapshotTime
)
JScript
public function GetBlockBlobReference (
	blobName : String, 
	snapshotTime : Nullable<DateTimeOffset>
) : CloudBlockBlob

Parameters

blobName

A string containing the name of the block blob.

snapshotTime

A DateTimeOffset specifying the snapshot timestamp, if the blob is a snapshot.

Return Value

A CloudBlockBlob object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also