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

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SendMessage(String, ChatRole, List<AIChatUploadFileInfo>) method.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also