次の方法で共有


ServiceBusTriggerAttribute クラス

定義

パラメーターを ServiceBus キュー メッセージにバインドするために使用される属性。この属性を使用すると、メッセージがエンキューされたときに関数が実行されます。

[Microsoft.Azure.WebJobs.ConnectionProvider(typeof(Microsoft.Azure.WebJobs.ServiceBusAccountAttribute))]
[Microsoft.Azure.WebJobs.Description.Binding]
[System.AttributeUsage(System.AttributeTargets.Parameter)]
public sealed class ServiceBusTriggerAttribute : Attribute, Microsoft.Azure.WebJobs.IConnectionProvider
[<Microsoft.Azure.WebJobs.ConnectionProvider(typeof(Microsoft.Azure.WebJobs.ServiceBusAccountAttribute))>]
[<Microsoft.Azure.WebJobs.Description.Binding>]
[<System.AttributeUsage(System.AttributeTargets.Parameter)>]
type ServiceBusTriggerAttribute = class
    inherit Attribute
    interface IConnectionProvider
Public NotInheritable Class ServiceBusTriggerAttribute
Inherits Attribute
Implements IConnectionProvider
継承
ServiceBusTriggerAttribute
属性
Microsoft.Azure.WebJobs.ConnectionProviderAttribute Microsoft.Azure.WebJobs.Description.BindingAttribute AttributeUsageAttribute
実装
Microsoft.Azure.WebJobs.IConnectionProvider

注釈

メソッド パラメーターの型には、次のいずれかを指定できます。

コンストラクター

ServiceBusTriggerAttribute(String)

ServiceBusTriggerAttribute クラスの新しいインスタンスを初期化します。

ServiceBusTriggerAttribute(String, String)

ServiceBusTriggerAttribute クラスの新しいインスタンスを初期化します。

プロパティ

AutoCompleteMessages

トリガーが正常に処理された後にメッセージを自動的に完了するかどうかを示す値を取得または設定します。 明示的に設定されていない場合、動作は 値に基づいて行 AutoCompleteMessages われます。

Connection

Service Bus 接続文字列を含むアプリ設定名を取得または設定します。

IsSessionsEnabled

セッションが有効かどうかを示す値を取得または設定します。

QueueName

バインドするキューの名前を取得します。

SubscriptionName

バインドする 内のサブスクリプションの TopicName 名前を取得します。

TopicName

バインドするトピックの名前を取得します。

適用対象