Share via


ChatMessageStore.ValidateMessage(ChatMessage) Method

Definition

Checks if a chat message is valid and returns the validation result.

public:
 virtual ChatMessageValidationResult ^ ValidateMessage(ChatMessage ^ chatMessage) = ValidateMessage;
ChatMessageValidationResult ValidateMessage(ChatMessage const& chatMessage);
public ChatMessageValidationResult ValidateMessage(ChatMessage chatMessage);
function validateMessage(chatMessage)
Public Function ValidateMessage (chatMessage As ChatMessage) As ChatMessageValidationResult

Parameters

chatMessage
ChatMessage

The chat message to validate.

Returns

The validation result.

Windows requirements

App capabilities
chat chatSystem smsSend

Remarks

Message validation will check the properties of the message for proper format, valid transport selected, attachment count, recipient count, and valid recipients.

Applies to