共用方式為


SerializationUtilities.AddValidationMessage Method

Definition

Add a validation message as serialization message, which is used to report load-time validation failures.

public:
 static void AddValidationMessage(Microsoft::VisualStudio::Modeling::SerializationResult ^ serializationResult, Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^ validationMessage);
public static void AddValidationMessage (Microsoft.VisualStudio.Modeling.SerializationResult serializationResult, Microsoft.VisualStudio.Modeling.Validation.ValidationMessage validationMessage);
static member AddValidationMessage : Microsoft.VisualStudio.Modeling.SerializationResult * Microsoft.VisualStudio.Modeling.Validation.ValidationMessage -> unit
Public Shared Sub AddValidationMessage (serializationResult As SerializationResult, validationMessage As ValidationMessage)

Parameters

serializationResult
SerializationResult

SerializationResult to store the message.

validationMessage
ValidationMessage

ValidationMessage to add.

Applies to