GameChatOverlay.AddMessage(String, String, GameChatMessageOrigin) 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.
Render a message in the game chat overlay.
public:
virtual void AddMessage(Platform::String ^ sender, Platform::String ^ message, GameChatMessageOrigin origin) = AddMessage;
void AddMessage(winrt::hstring const& sender, winrt::hstring const& message, GameChatMessageOrigin const& origin);
public void AddMessage(string sender, string message, GameChatMessageOrigin origin);
function addMessage(sender, message, origin)
Public Sub AddMessage (sender As String, message As String, origin As GameChatMessageOrigin)
Parameters
- sender
-
String
Platform::String
winrt::hstring
The name of the account that sent the message. In most cases, this should be the gamertag.
- message
-
String
Platform::String
winrt::hstring
The contents of the message.
- origin
- GameChatMessageOrigin
The origin of the message (voice or text).