Udostępnij za pośrednictwem


ServiceBusAccountAttribute Class

Definition

Attribute used to override the default ServiceBus account used by triggers and binders.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Parameter)]
public sealed class ServiceBusAccountAttribute : Attribute, Microsoft.Azure.WebJobs.IConnectionProvider
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Parameter)>]
type ServiceBusAccountAttribute = class
    inherit Attribute
    interface IConnectionProvider
Public NotInheritable Class ServiceBusAccountAttribute
Inherits Attribute
Implements IConnectionProvider
Inheritance
ServiceBusAccountAttribute
Attributes
Implements
Microsoft.Azure.WebJobs.IConnectionProvider

Remarks

This attribute can be applied at the parameter/method/class level, and the precedence is in that order.

Constructors

ServiceBusAccountAttribute(String)

Constructs a new instance.

Properties

Account

Gets or sets the name of the app setting that contains the Service Bus connection string.

Explicit Interface Implementations

IConnectionProvider.Connection

Gets or sets the app setting name that contains the Service Bus connection string.

Applies to