ServiceBusTriggerAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
パラメーターを 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
注釈
メソッド パラメーターの型には、次のいずれかを指定できます。
- ServiceBusReceivedMessage
- String
- Bytearray
- BinaryData
- ユーザー定義型 (JSON としてシリアル化)
コンストラクター
ServiceBusTriggerAttribute(String) |
ServiceBusTriggerAttribute クラスの新しいインスタンスを初期化します。 |
ServiceBusTriggerAttribute(String, String) |
ServiceBusTriggerAttribute クラスの新しいインスタンスを初期化します。 |
プロパティ
AutoCompleteMessages |
トリガーが正常に処理された後にメッセージを自動的に完了するかどうかを示す値を取得または設定します。 明示的に設定されていない場合、動作は 値に基づいて行 AutoCompleteMessages われます。 |
Connection |
Service Bus 接続文字列を含むアプリ設定名を取得または設定します。 |
IsSessionsEnabled |
セッションが有効かどうかを示す値を取得または設定します。 |
QueueName |
バインドするキューの名前を取得します。 |
SubscriptionName |
バインドする 内のサブスクリプションの TopicName 名前を取得します。 |
TopicName |
バインドするトピックの名前を取得します。 |
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET