でBlobPropertiesをバインドできません、私はC#で次Azureの機能を作成しようとしています:は、Azureの機能
public static async Task Run([BlobTrigger("container/{name}.png", Connection = "StorageConn")]Stream myBlob, string name, Uri uri, BlobProperties properties, TraceWriter log)
が、私はこのエラーを受信し続ける何らかの理由:
A ScriptHost error has occurred Microsoft.Azure.WebJobs.Host: Error indexing method 'TriggerSaveImgReference.Run'. Microsoft.Azure.WebJobs.Host: Can't bind parameter 'properties' to type 'Microsoft.WindowsAzure.Storage.Blob.BlobProperties'.
Error indexing method 'TriggerSaveImgReference.Run'
Microsoft.Azure.WebJobs.Host: Error indexing method 'TriggerSaveImgReference.Run'. Microsoft.Azure.WebJobs.Host: Can't bind parameter 'properties' to type 'Microsoft.WindowsAzure.Storage.Blob.BlobProperties'.
ドキュメントによると: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob
バインディング式にBlobProperties
プロパティを使用できるはずです。私はそれを誤解していますか? BlobProperties
を入手するにはどうすればよいですか?
WindowsAzure.Storage version 8.5.0
Microsoft.NET.Sdk.Functions version 1.0.2
を、ターゲットの.NETフレームワークは、WindowsAzure.Storage
パッケージに明示的な参照を削除してください4.6.1
私のためにチャームのように動作します。質問に使用するNuGetリファレンスとバージョンを追加できますか? – Mikhail
確かに - 私は今私のポストにそれらを追加しました – Hos