RouteAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use specific route attributes: ActivityRouteAttribute, MessageRouteAttribute, EventRouteAttribute, ConversationUpdateRouteAttribute, MembersAddedRouteAttribute, MembersRemovedRouteAttribute, MessageReactionsAddedRouteAttribute, MessageReactionsRemovedRouteAttribute, HandoffRouteAttribute, FeedbackLoopRouteAttribute.
Adds an AgentApplication Routes
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
[System.Obsolete("Use specific route attributes: ActivityRouteAttribute, MessageRouteAttribute, EventRouteAttribute, ConversationUpdateRouteAttribute, MembersAddedRouteAttribute, MembersRemovedRouteAttribute, MessageReactionsAddedRouteAttribute, MessageReactionsRemovedRouteAttribute, HandoffRouteAttribute, FeedbackLoopRouteAttribute.")]
public class RouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
[<System.Obsolete("Use specific route attributes: ActivityRouteAttribute, MessageRouteAttribute, EventRouteAttribute, ConversationUpdateRouteAttribute, MembersAddedRouteAttribute, MembersRemovedRouteAttribute, MessageReactionsAddedRouteAttribute, MessageReactionsRemovedRouteAttribute, HandoffRouteAttribute, FeedbackLoopRouteAttribute.")>]
type RouteAttribute = class
inherit Attribute
interface IRouteAttribute
Public Class RouteAttribute
Inherits Attribute
Implements IRouteAttribute
- Inheritance
-
RouteAttribute
- Attributes
- Implements
Remarks
This attribute is obsolete. Use the specific route attributes instead: ActivityRouteAttribute, MessageRouteAttribute, EventRouteAttribute, ConversationUpdateRouteAttribute, MembersAddedRouteAttribute, MembersRemovedRouteAttribute, MessageReactionsAddedRouteAttribute, MessageReactionsRemovedRouteAttribute, HandoffRouteAttribute, FeedbackLoopRouteAttribute.
Constructors
| Name | Description |
|---|---|
| RouteAttribute() | |
Properties
| Name | Description |
|---|---|
| EventName |
Activity Name for Invokes, Events, and ConversationUpdate. |
| IsAgentic |
Indicates if this is an Agentic route. Defaults to false. |
| Rank |
Route ordering rank. |
| Regex |
Activity Text Regex |
| RouteType | |
| Selector |
Name of a custom RouteSelector delegate. |
| SignInHandlers |
Delimited list of OAuth handlers to use for the RouteHandler. |
| Text |
Activity Text |
| Type |
Activity Type, ActivityTypes |
Methods
| Name | Description |
|---|---|
| AddRoute(AgentApplication, MethodInfo) | |
| DelimitedToList(String) | |