ValidationMessage Class

 

Represents a validation message that states an error, a warning, or a message.

Namespace:   Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

System::Object
  Microsoft.VisualStudio.Modeling.Validation::ValidationMessage
    Microsoft.VisualStudio.Modeling.Shell::TaskValidationMessage

public ref class ValidationMessage 

NameDescription
System_CAPS_protmethodValidationMessage(ValidationContext^, String^)

Initializes a new instance of the ValidationMessage class using a context and a description for the message.

System_CAPS_protmethodValidationMessage(ValidationContext^, String^, Int32, Int32)

Initializes a new instance of the ValidationMessage class using a context, a description, a line number, and a column number for the message.

System_CAPS_protmethodValidationMessage(ValidationContext^, String^, String^, ViolationType)

Initializes a new instance of the ValidationMessage class using a context, a description, a code, and a violation type for the message.

NameDescription
System_CAPS_pubpropertyCode

Gets the code for the message.

System_CAPS_pubpropertyColumn

Gets the column in a line of text where the error occurs.

System_CAPS_pubpropertyContext

Gets the context information for a validation message.

System_CAPS_pubpropertyDescription

Gets the description for a validation message.

System_CAPS_pubpropertyFile

Gets the name of a referenced file.

System_CAPS_pubpropertyHelpKeyword

Gets or sets the keyword to search for in the Help for Visual Studio.

System_CAPS_pubpropertyLine

Gets the line number in the file to which the error or the warning refers.

System_CAPS_pubpropertyReferencedFiles

Gets the names of files to which the ValidationMessage refers.

System_CAPS_pubpropertyReferencedModelElements

Gets the model elements that are referenced by this message.

System_CAPS_pubpropertyType

Gets the type of validation message.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Checks to see whether the validation message is equal to another object.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets an identifier for a ValidationMessage.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Identifies the validation message.(Overrides Object::ToString().)

System_CAPS_pubmethodUpdateFileReferences(IEnumerable<String^>^)

Contains the names of files to update from a list of zero or more file names.

System_CAPS_pubmethodUpdateFileReferences(String^)

Contains the name of the file to update.

System_CAPS_pubmethodUpdateReferencedModelElements(IEnumerable<ModelElement^>^)

Updates the referenced model elements.

A ValidationMessage is created in a user-defined validation method. The actual creation is completed through the virtual ValidationContext.ConstructValidationMessage method.

This class represents validation messages that the ValidationMessageObserver class can obtain.

For more information, see Validation in a Domain-Specific Language.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: