你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LeaseContainerRequest 构造函数

定义

重载

LeaseContainerRequest()

初始化 LeaseContainerRequest 类的新实例。

LeaseContainerRequest(Action1, String, Nullable<Int32>, Nullable<Int32>, String)

初始化 LeaseContainerRequest 类的新实例。

LeaseContainerRequest()

初始化 LeaseContainerRequest 类的新实例。

public LeaseContainerRequest ();
Public Sub New ()

适用于

LeaseContainerRequest(Action1, String, Nullable<Int32>, Nullable<Int32>, String)

初始化 LeaseContainerRequest 类的新实例。

public LeaseContainerRequest (Microsoft.Azure.Management.Storage.Fluent.Models.Action1 action, string leaseId = default, int? breakPeriod = default, int? leaseDuration = default, string proposedLeaseId = default);
new Microsoft.Azure.Management.Storage.Fluent.Models.LeaseContainerRequest : Microsoft.Azure.Management.Storage.Fluent.Models.Action1 * string * Nullable<int> * Nullable<int> * string -> Microsoft.Azure.Management.Storage.Fluent.Models.LeaseContainerRequest
Public Sub New (action As Action1, Optional leaseId As String = Nothing, Optional breakPeriod As Nullable(Of Integer) = Nothing, Optional leaseDuration As Nullable(Of Integer) = Nothing, Optional proposedLeaseId As String = Nothing)

参数

action
Action1

指定租用操作。 可以是可用操作之一。 可能的值包括:“Acquire”、“Renew”、“Change”、“Release”、“Break”

leaseId
String

标识租约。 可以采用任何有效的 GUID 字符串格式指定。

breakPeriod
Nullable<Int32>

可选。 对于中断操作,租约在中断前应继续建议的持续时间,以秒为单位,介于 0 到 60 之间。

leaseDuration
Nullable<Int32>

获取时需要。 指定租约的持续时间(秒),或者指定 -1 以表示永不过期的租约。

proposedLeaseId
String

获取是可选的,更改是必需的。 建议的租约 ID,采用 GUID 字符串格式。

适用于