ArmStorageModelFactory.LeaseShareContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of LeaseShareContent.
public static Azure.ResourceManager.Storage.Models.LeaseShareContent LeaseShareContent (Azure.ResourceManager.Storage.Models.LeaseShareAction action = default, string leaseId = default, int? breakPeriod = default, int? leaseDuration = default, string proposedLeaseId = default);
static member LeaseShareContent : Azure.ResourceManager.Storage.Models.LeaseShareAction * string * Nullable<int> * Nullable<int> * string -> Azure.ResourceManager.Storage.Models.LeaseShareContent
Public Shared Function LeaseShareContent (Optional action As LeaseShareAction = Nothing, Optional leaseId As String = Nothing, Optional breakPeriod As Nullable(Of Integer) = Nothing, Optional leaseDuration As Nullable(Of Integer) = Nothing, Optional proposedLeaseId As String = Nothing) As LeaseShareContent
Parameters
- action
- LeaseShareAction
Specifies the lease action. Can be one of the available actions.
- leaseId
- String
Identifies the lease. Can be specified in any valid GUID string format.
Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.
Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.
- proposedLeaseId
- String
Optional for acquire, required for change. Proposed lease ID, in a GUID string format.
Returns
A new LeaseShareContent instance for mocking.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應