ActivityExtensions.GetAgenticTenantId(IActivity) Method
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.
Retrieves the tenant ID associated with the agentic recipient of the activity, if available; otherwise, returns the tenant ID from the conversation.
public static string GetAgenticTenantId(this Microsoft.Agents.Core.Models.IActivity activity);
static member GetAgenticTenantId : Microsoft.Agents.Core.Models.IActivity -> string
<Extension()>
Public Function GetAgenticTenantId (activity As IActivity) As String
Parameters
- activity
- IActivity
The activity from which to extract the tenant ID.
Returns
The tenant ID of the agentic recipient if present; otherwise, the tenant ID from the conversation. Returns null if neither is available.