TaskValidationMessage Class

 

Represents a validation error, warning, or information message.

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

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

public ref class TaskValidationMessage : ValidationMessage

NameDescription
System_CAPS_pubpropertyCategory

Task category.

System_CAPS_pubpropertyCode

Gets the code for the message.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyColumn

Gets the column in a line of text where the error occurs.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyContext

Gets the context information for a validation message.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyDescription

Gets the description for a validation message.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyFile

return the name of the first referenced file, if one exists, otherwise null.(Overrides ValidationMessage::File.)

System_CAPS_pubpropertyHelpKeyword

Gets or sets the keyword to search for in the Help for Visual Studio.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyLine

Gets the line number in the file to which the error or the warning refers.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyReferencedFiles

Gets the names of files to which the ValidationMessage refers.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyReferencedModelElements

Gets the model elements that are referenced by this message.(Inherited from ValidationMessage.)

System_CAPS_pubpropertyType

Gets the type of validation message.(Inherited from ValidationMessage.)

NameDescription
System_CAPS_pubmethodConfigure(ValidationTask^)

configures the supplied task with values of this message.

System_CAPS_pubmethodEquals(Object^)

Checks to see whether the validation message is equal to another object.(Inherited from ValidationMessage.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets an identifier for a ValidationMessage.(Inherited from ValidationMessage.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsMatch(IVsTaskItem^)

determines if the specified taskItem represents this message.

System_CAPS_pubmethodIsMatch(TaskItem^)

determines if the specified taskItem represents this message.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Identifies the validation message.(Inherited from ValidationMessage.)

System_CAPS_pubmethodUpdateFileReferences(IEnumerable<String^>^)

Contains the names of files to update from a list of zero or more file names.(Inherited from ValidationMessage.)

System_CAPS_pubmethodUpdateFileReferences(String^)

Contains the name of the file to update.(Inherited from ValidationMessage.)

System_CAPS_pubmethodUpdateReferencedModelElements(IEnumerable<ModelElement^>^)

Updates the referenced model elements.(Inherited from ValidationMessage.)

TaskValidationMessages are supplied by the VsValidationContext, which overrides ConstructValidationMessage. It contains the information to work with the Visual Studio ErrorList tool window. It able to navigate to the shape in the diagram from the offending model element.

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: