我试图通过这种方式保存元数据:
public void SaveMetaData(string fileName, string container, string key, string value)
{
try
{
var blob = GetBlobReference(fileName, container);
blob.FetchAttributes();
blob.Metadata.Add(key,value);
}
catch (Exception e)
{
_logger.Error(e,
"An Exception occured with blobname = {0} and blobcontainer = {1}", fileName,
container);
}
}
但它不起作用。我该怎么做?!