Udostępnij za pośrednictwem


GameChatOverlay.AddMessage(String, String, GameChatMessageOrigin) Method

Definition

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).

Applies to