ArmStorageModelFactory.LegalHoldProperties 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 LegalHoldProperties.
public static Azure.ResourceManager.Storage.Models.LegalHoldProperties LegalHoldProperties (bool? hasLegalHold = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Storage.Models.LegalHoldTag> tags = default, Azure.ResourceManager.Storage.Models.ProtectedAppendWritesHistory protectedAppendWritesHistory = default);
static member LegalHoldProperties : Nullable<bool> * seq<Azure.ResourceManager.Storage.Models.LegalHoldTag> * Azure.ResourceManager.Storage.Models.ProtectedAppendWritesHistory -> Azure.ResourceManager.Storage.Models.LegalHoldProperties
Public Shared Function LegalHoldProperties (Optional hasLegalHold As Nullable(Of Boolean) = Nothing, Optional tags As IEnumerable(Of LegalHoldTag) = Nothing, Optional protectedAppendWritesHistory As ProtectedAppendWritesHistory = Nothing) As LegalHoldProperties
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<LegalHoldTag>
The list of LegalHold tags of a blob container.
- protectedAppendWritesHistory
- ProtectedAppendWritesHistory
Protected append blob writes history.
Returns
A new LegalHoldProperties instance for mocking.
Applies to
Azure SDK for .NET