共用方式為


LegalHold Class

Definition

The LegalHold property of a blob container.

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

Constructors

LegalHold(IEnumerable<String>)

Initializes a new instance of LegalHold.

Properties

AllowProtectedAppendWritesAll

When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.

HasLegalHold

The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.

Tags

Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Explicit Interface Implementations

IJsonModel<LegalHold>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<LegalHold>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LegalHold>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LegalHold>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<LegalHold>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to