CloudBlobClient.ParallelOperationThreadCount Property

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Gets or sets the number of blocks that may be simultaneously uploaded when uploading a blob that is greater than the value specified by the SingleBlobUploadThresholdInBytes property.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim instance As CloudBlobClient
Dim value As Integer

value = instance.ParallelOperationThreadCount

instance.ParallelOperationThreadCount = value

Syntax

Visual Basic
Public Property ParallelOperationThreadCount As Integer
C#
public int ParallelOperationThreadCount { get; set; }
C++
public:
property int ParallelOperationThreadCount {
	int get ();
	void set (int value);
}
J#
JScript

Property Value

Type: System.Int32

The number of block upload operations that may proceed in parallel, up to the maximum of 64.

Remarks

When you upload a blob that is greater than the value specified by the SingleBlobUploadThresholdInBytes property, it is automatically divided into blocks that are uploaded individually and assembled into the complete blob by the service. The ParallelOperationThreadCount property specifies how many blocks may be uploaded simultaneously.

The default value of the ParallelOperationThreadCount property is the minimum number of asynchronous I/O threads created on demand by the system thread pool.

The value of ParallelOperationThreadCount applies per logical operation, so if you are performing two operations, you will have up to the value of ParallelOperationThreadCount threads for each operation. The total number of threads available is limited by the number of threads available in the system thread pool.

Note that there is no benefit to setting this value to a number higher than the number of blocks that are being uploaded.


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

See Also