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.

    This API is obsolete now.

    Namespace: DevExpress.AIIntegration.WinForms.Chat

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

    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
    text String
    role Microsoft.Extensions.AI.ChatRole

    Optional Parameters

    Name Type Default
    files List<AIChatUploadFileInfo> null

    Returns

    Type
    Task

    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