共用方式為


LeaseShareContent Class

Definition

Lease Share request schema.

public class LeaseShareContent : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Storage.Models.LeaseShareContent>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Storage.Models.LeaseShareContent>
public class LeaseShareContent
type LeaseShareContent = class
    interface IJsonModel<LeaseShareContent>
    interface IPersistableModel<LeaseShareContent>
type LeaseShareContent = class
Public Class LeaseShareContent
Implements IJsonModel(Of LeaseShareContent), IPersistableModel(Of LeaseShareContent)
Public Class LeaseShareContent
Inheritance
LeaseShareContent
Implements

Constructors

LeaseShareContent(LeaseShareAction)

Initializes a new instance of LeaseShareContent.

Properties

Action

Specifies the lease action. Can be one of the available actions.

BreakPeriod

Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.

LeaseDuration

Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.

LeaseId

Identifies the lease. Can be specified in any valid GUID string format.

ProposedLeaseId

Optional for acquire, required for change. Proposed lease ID, in a GUID string format.

Explicit Interface Implementations

IJsonModel<LeaseShareContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LeaseShareContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LeaseShareContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LeaseShareContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LeaseShareContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to