Expand Minimize
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.
Ten temat nie został jeszcze oceniony - Oceń ten temat

CloudBlockBlob.PutBlock Method

Uploads a single block.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
'Użycie
Dim instance As CloudBlockBlob
Dim blockId As String
Dim blockData As Stream
Dim contentMD5 As String
Dim accessCondition As AccessCondition
Dim options As BlobRequestOptions
Dim operationContext As OperationContext

instance.PutBlock(blockId, blockData, contentMD5, accessCondition, options, operationContext)
[DoesServiceRequest] 
public void PutBlock (
	string blockId,
	Stream blockData,
	string contentMD5,
	[OptionalAttribute] AccessCondition accessCondition,
	[OptionalAttribute] BlobRequestOptions options,
	[OptionalAttribute] OperationContext operationContext
)
/** @attribute DoesServiceRequest() */ 
public void PutBlock (
	String blockId, 
	Stream blockData, 
	String contentMD5, 
	/** @attribute OptionalAttribute() */ AccessCondition accessCondition, 
	/** @attribute OptionalAttribute() */ BlobRequestOptions options, 
	/** @attribute OptionalAttribute() */ OperationContext operationContext
)
DoesServiceRequest 
public function PutBlock (
	blockId : String, 
	blockData : Stream, 
	contentMD5 : String, 
	accessCondition : AccessCondition, 
	options : BlobRequestOptions, 
	operationContext : OperationContext
)

Parameters

blockId

A base64-encoded block ID that identifies the block.

blockData

A stream that provides the data for the block.

contentMD5

An optional hash value that will be used to set the ContentMD5 property on the blob. May be null or an empty string.

accessCondition

An AccessCondition object that represents the access conditions for the blob. If null, no condition is used.

options

A BlobRequestOptions object that specifies any additional options for the request.

operationContext

An OperationContext object that represents the context for the current operation.

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

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Oceniasz te materiały jako pomocne?
(Pozostało znaków: 1500)
© 2013 Microsoft. Wszelkie prawa zastrzeżone.
facebook page visit twitter rss feed newsletter