AgentClaims.IsBotFramework(ClaimsIdentity) Method

Definition

Determines whether the specified incoming identity represents a Bot Framework user.

public static bool IsBotFramework(this System.Security.Claims.ClaimsIdentity identity);
static member IsBotFramework : System.Security.Claims.ClaimsIdentity -> bool
<Extension()>
Public Function IsBotFramework (identity As ClaimsIdentity) As Boolean

Parameters

identity
ClaimsIdentity

The incoming identity to evaluate for Bot Framework claims. This parameter cannot be null.

Returns

true if the incoming identity contains Bot Framework claims; otherwise, false.

Remarks

This method checks for specific claims that indicate the identity belongs to a Bot Framework user. Use this method to distinguish Bot Framework identities from other types of claims identities.

Applies to