Skip to main content
All docs
V26.1
  • AIChatControl.SendMessage(String, ChatRole, List<AIChatUploadFileInfo>) Method

    OBSOLETE

    This method is obsolete and will be removed in a future version. Use SendMessageAsync instead.

    Sends a message to the chat.

    Namespace: DevExpress.AIIntegration.WinForms.Chat

    Assembly: DevExpress.AIIntegration.WinForms.Chat.v26.1.dll

    NuGet Package: DevExpress.AIIntegration.WinForms.Chat

    Declaration

    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("This method is obsolete and will be removed in a future version. Use SendMessageAsync instead.")]
    public Task SendMessage(
        string text,
        ChatRole role,
        List<AIChatUploadFileInfo> files = null
    )

    Parameters

    Name Type Description
    text String

    The message text to send.

    role Microsoft.Extensions.AI.ChatRole

    The role of the message owner.

    Optional Parameters

    Name Type Default Description
    files List<AIChatUploadFileInfo> null

    A collection of files to upload.

    Returns

    Type Description
    Task

    A task that completes when the message is sent.

    Remarks

    Note

    This method is obsolete. Call the SendMessageAsync method instead.

    Refer to the following help topic for additional information: AI Chat Control

    See Also