Search code examples
c#asp.net-coreblazorazure-blob-storageetag

How to assign "*" to IfMatch - conditional header


I download blob content from Azure blob storage. I am trying to set conditional header ETag value as "*".

When i give IfMatch = "*", says cannot implicitly convert string to Azure.ETag.

        Conditions = new BlobRequestConditions()
        {
           IfMatch = "*"  

        }
   

How do I assign IfMatch to *. Thank you.


Solution

  • Not sure, but you are looking for this? You can not assign a String value to an ETag

    IfMatch = new ETag("*")