TeamsAgentExtension(AgentApplication) Constructor
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.
Creates a new TeamsAgentExtension instance.
public TeamsAgentExtension(Microsoft.Agents.Builder.App.AgentApplication agentApplication);
new Microsoft.Agents.Extensions.MSTeams.TeamsAgentExtension : Microsoft.Agents.Builder.App.AgentApplication -> Microsoft.Agents.Extensions.MSTeams.TeamsAgentExtension
Public Sub New (agentApplication As AgentApplication)
Parameters
- agentApplication
- AgentApplication
The AgentApplication for this extension.
Remarks
The preferred way to enable the Teams extension is via the TeamsExtensionAttribute on a partialAgentApplication subclass, which causes a source generator to expose a Teams property of this type automatically. Use this constructor directly only when manually registering the extension with AgentApplication.