NET客户端为Azure Blob存储设置不变性策略 [英] Setting immutability policy for Azure Blob storage by .net client
问题描述
如何通过.net客户端设置Azure blob容器的不变性策略?我只找到吸气剂 container.Properties.HasImmutabilityPolicy ,但无法设置策略.
How do I set the immutability policy for a Azure blob container by .net client? I only found the getter container.Properties.HasImmutabilityPolicy, but no way to set the policy.
谢谢.
推荐答案
您应该能够通过使用ImmutabilityPolicy()类为.NET中的Blob存储设置不变性策略.
You should be able to set the immutability policy for Blob Storage in .NET by using the ImmutabilityPolicy() class.
The following reference guide shows how you can implement this class in order to set the policy: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.storage.models.immutabilitypolicy.-ctor?view=azure-dotnet#Microsoft_Azure_Management_Storage_Models_ImmutabilityPolicy__ctor
如果此答案有帮助,请单击标记为答案"或向上投票.要提供有关您的论坛体验的其他反馈,请单击 此处
If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click Here
这篇关于NET客户端为Azure Blob存储设置不变性策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!