Share via


BlobTriggerAttribute Klasse

Definition

Attribut, das zum Binden eines Parameters an ein Azure-Blob verwendet wird, wodurch die Methode ausgeführt wird, wenn ein Blob hochgeladen wird.

[Microsoft.Azure.WebJobs.ConnectionProvider(typeof(Microsoft.Azure.WebJobs.StorageAccountAttribute))]
[Microsoft.Azure.WebJobs.Description.Binding]
[System.AttributeUsage(System.AttributeTargets.Parameter)]
public sealed class BlobTriggerAttribute : Attribute, Microsoft.Azure.WebJobs.IConnectionProvider
[<Microsoft.Azure.WebJobs.ConnectionProvider(typeof(Microsoft.Azure.WebJobs.StorageAccountAttribute))>]
[<Microsoft.Azure.WebJobs.Description.Binding>]
[<System.AttributeUsage(System.AttributeTargets.Parameter)>]
type BlobTriggerAttribute = class
    inherit Attribute
    interface IConnectionProvider
Public NotInheritable Class BlobTriggerAttribute
Inherits Attribute
Implements IConnectionProvider
Vererbung
BlobTriggerAttribute
Attribute
Microsoft.Azure.WebJobs.ConnectionProviderAttribute Microsoft.Azure.WebJobs.Description.BindingAttribute AttributeUsageAttribute
Implementiert
Microsoft.Azure.WebJobs.IConnectionProvider

Hinweise

Der Methodenparametertyp kann einer der folgenden Sein:

Konstruktoren

BlobTriggerAttribute(String)

Initialisiert eine neue Instanz der BlobTriggerAttribute-Klasse.

Eigenschaften

BlobPath

Ruft den Pfad des Blobs ab, an das gebunden werden soll.

Connection

Ruft den App-Einstellungsnamen ab, der die Azure Storage-Verbindungszeichenfolge enthält, oder legt diesen fest.

Source

Gibt einen bool-Wert zurück, der angibt, ob EventGrid verwendet wird.

Gilt für: