Freigeben über


FileUploadNotificationProcessorClient.FileUploadNotificationProcessor Eigenschaft

Definition

Der Rückruf, der jedes Mal ausgeführt werden soll, wenn eine Dateiuploadbenachrichtigung vom Dienst empfangen wird.

public Func<Microsoft.Azure.Devices.FileUploadNotification,Microsoft.Azure.Devices.AcknowledgementType> FileUploadNotificationProcessor { get; set; }
member this.FileUploadNotificationProcessor : Func<Microsoft.Azure.Devices.FileUploadNotification, Microsoft.Azure.Devices.AcknowledgementType> with get, set
Public Property FileUploadNotificationProcessor As Func(Of FileUploadNotification, AcknowledgementType)

Eigenschaftswert

Beispiele

serviceClient.FileUploadNotificationProcessor.FileUploadNotificationProcessor = OnFileUploadNotificationReceived; serviceClient.FileUploadNotificationProcessor.OpenAsync();

//...

public AcknowledgementType OnFileUploadNotificationReceived(FileUploadNotification fileUploadNotification) { Console.WriteLine($"Received file upload notification from device {fileUploadNotification.DeviceId}") return AcknowledgementType.Complete; }

Hinweise

Darf nicht NULL sein.

Gilt für: