Share via


BlobAttribute Klasse

Definition

Attribut, das zum Binden eines Parameters an ein Azure-Blob verwendet wird. Das Attribut unterstützt die Bindung an einzelne Blobs, Blobcontainer oder Blobsammlungen.

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

Hinweise

Der Methodenparametertyp kann einer der folgenden Sein:

Zusätzlich zu einzelnen Blobbindungen können Parameter an mehrere Blobs gebunden werden. Der Parametertyp kann oder IEnumerable<T> eines der folgenden Elementtypen seinBlobContainerClient:

Konstruktoren

BlobAttribute(String)

Initialisiert eine neue Instanz der BlobAttribute-Klasse.

BlobAttribute(String, FileAccess)

Initialisiert eine neue Instanz der BlobAttribute-Klasse.

Eigenschaften

Access

Ruft die Art von Vorgängen ab, die für das Blob ausgeführt werden können.

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.

Gilt für: