WebPubSubChatMessageContent.FromText(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates message content containing text.
public static Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessageContent FromText(string text);
static member FromText : string -> Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessageContent
Public Shared Function FromText (text As String) As WebPubSubChatMessageContent
Parameters
- text
- String
The text content.
Returns
Message content containing only text.
Exceptions
text is null.