2
Properties
속성이 LastModified
이고 DateTimeOffset?
인 blob 참조가 있습니다. 그러나, 나는 블롭의 생성 날짜 (시간)가 언제인지를 알 수 없다. 사용할 수있는 표준 API가 있거나 메타에 저장해야하는 표준 API가 있습니까?하늘빛에서 블록 얼룩이 생성 된시기는 언제입니까?
public async Task<IBlobMeta> GetBlobMetaAsync(string blobId)
{
if (IsNullOrWhiteSpace(blobId))
throw new ArgumentException("Value cannot be null or whitespace.", nameof(blobId));
var blob = await EnsureGetBlobById(blobId);
await blob.FetchAttributesAsync();
string clientBlobName;
blob.Metadata.TryGetValue(BlobNameMetaKey, out clientBlobName);
var length = blob.Properties.Length;
var md5 = blob.Properties.ContentMD5;
var lastModified = blob.Properties.LastModified.Value.ToUniversalTime().DateTime;
var dateCreated= blob.Properties.???????;
return new AzureBlobMeta(blobId, clientBlobName, length, md5, dateCreated);
}
그 이유는 무엇입니까? API를 통해이 정보를 표시 할 수없는 이유는 무엇입니까? –