ArmStorageModelFactory.LegalHold 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 LegalHold.
public static Azure.ResourceManager.Storage.Models.LegalHold LegalHold (bool? hasLegalHold = default, System.Collections.Generic.IEnumerable<string> tags = default, bool? allowProtectedAppendWritesAll = default);
static member LegalHold : Nullable<bool> * seq<string> * Nullable<bool> -> Azure.ResourceManager.Storage.Models.LegalHold
Public Shared Function LegalHold (Optional hasLegalHold As Nullable(Of Boolean) = Nothing, Optional tags As IEnumerable(Of String) = Nothing, Optional allowProtectedAppendWritesAll As Nullable(Of Boolean) = Nothing) As LegalHold
Parameters
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
- IEnumerable<String>
Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
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.
Returns
A new LegalHold instance for mocking.
Applies to
Azure SDK for .NET