Share via


ChatRole.Equality(ChatRole, ChatRole) Operator

Definition

Determines if two ChatRole values are the same.

public static bool operator == (Azure.AI.OpenAI.ChatRole left, Azure.AI.OpenAI.ChatRole right);
static member ( = ) : Azure.AI.OpenAI.ChatRole * Azure.AI.OpenAI.ChatRole -> bool
Public Shared Operator == (left As ChatRole, right As ChatRole) As Boolean

Parameters

left
ChatRole

the first ChatRole instance to compare

right
ChatRole

the second ChatRole instance to compare

Returns

true if left and right are both null or have equivalent labels; false otherwise

Applies to