ChatMessageValidationResult ChatMessageValidationResult ChatMessageValidationResult ChatMessageValidationResult Class

Definition

Provides results for validation of chat messages.

public : sealed class ChatMessageValidationResult : IChatMessageValidationResultpublic sealed class ChatMessageValidationResult : IChatMessageValidationResultPublic NotInheritable Class ChatMessageValidationResult Implements IChatMessageValidationResult// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Obtain an instance of this class by calling ValidateMessage.

Properties

MaxPartCount MaxPartCount MaxPartCount MaxPartCount

Gets the maximum number of text fragments allowed for a message. This value has meaning when the SMS text portion of a message is validated.

public : IReference<uint> MaxPartCount { get; }public Nullable<uint> MaxPartCount { get; }Public ReadOnly Property MaxPartCount As Nullable<uint>// You can use this property in JavaScript.
Value
IReference<unsigned int> Nullable<uint> Nullable<uint> Nullable<uint>

The maximum number of parts.

Remarks

The SMS text portion of a message is divided into multiple parts if necessary. The MaxPartCount value is the total count of parts allowed for any message.

PartCount PartCount PartCount PartCount

Gets the total number of text fragments needed for this message. This value has meaning when the SMS text portion of a message is validated.

public : IReference<uint> PartCount { get; }public Nullable<uint> PartCount { get; }Public ReadOnly Property PartCount As Nullable<uint>// You can use this property in JavaScript.
Value
IReference<unsigned int> Nullable<uint> Nullable<uint> Nullable<uint>

The number of parts.

Remarks

The SMS text portion of a message is divided into multiple parts if necessary. The PartCount value is the total count of parts required to contain this message.

RemainingCharacterCountInPart RemainingCharacterCountInPart RemainingCharacterCountInPart RemainingCharacterCountInPart

Gets the number of characters not used in the final message fragments. This value has meaning when the SMS text portion of a message is validated.

public : IReference<uint> RemainingCharacterCountInPart { get; }public Nullable<uint> RemainingCharacterCountInPart { get; }Public ReadOnly Property RemainingCharacterCountInPart As Nullable<uint>// You can use this property in JavaScript.
Value
IReference<unsigned int> Nullable<uint> Nullable<uint> Nullable<uint>

The remaining characters in the part.

Remarks

The SMS text portion of a message is divided in to multiple parts if necessary. The RemainingCharacterCountInPart value is the number of character positions that remain unused in the final message fragment.

Status Status Status Status

Gets the message validation status code.

public : ChatMessageValidationStatus Status { get; }public ChatMessageValidationStatus Status { get; }Public ReadOnly Property Status As ChatMessageValidationStatus// You can use this property in JavaScript.

Remarks

When Status is not ChatMessageValidationStatus.Valid, the status result indicates the first error condition found. A message may have additional errors, and a second validation will return the next error found if the previous error is resolved.