Exporter (0) Imprimer
Développer tout
EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.
0 sur 1 ont trouvé cela utile - Évaluez ce sujet

CloudPageBlob.BreakLease Method

Updated: September 24, 2013

[This topic is part of the Windows Azure Storage Client Library 2.1. The current recommended version is Storage Client Library 3.0.]

Breaks the current lease on this blob.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
'Utilisation
Dim instance As CloudPageBlob
Dim breakPeriod As Nullable(Of TimeSpan)
Dim accessCondition As AccessCondition
Dim options As BlobRequestOptions
Dim operationContext As OperationContext
Dim returnValue As TimeSpan

returnValue = instance.BreakLease(breakPeriod, accessCondition, options, operationContext)
[DoesServiceRequest] 
public TimeSpan BreakLease (
	[OptionalAttribute] Nullable<TimeSpan> breakPeriod,
	[OptionalAttribute] AccessCondition accessCondition,
	[OptionalAttribute] BlobRequestOptions options,
	[OptionalAttribute] OperationContext operationContext
)

Parameters

breakPeriod

A TimeSpan representing the amount of time to allow the lease to remain, which will be rounded down to seconds. If null, the break period is the remainder of the current lease, or zero for infinite leases.

accessCondition

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

options

The options for this operation. If null, default options will be used.

operationContext

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

Return Value

A TimeSpan representing the amount of time before the lease ends, to the second.
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

 

Cela vous a-t-il été utile ?
(1500 caractères restants)
Merci pour vos suggestions.
Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
Afficher:
© 2014 Microsoft. Tous droits réservés.