TaskValidationMessage Class

Represents a validation error, warning, or information message.


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

public class TaskValidationMessage : ValidationMessage

The TaskValidationMessage type exposes the following members.

Public methodTaskValidationMessageConstructor.

Public propertyCategoryTask category.
Public propertyCodeGets the code for the message. (Inherited from ValidationMessage.)
Public propertyColumnGets the column in a line of text where the error occurs. (Inherited from ValidationMessage.)
Public propertyContextGets the context information for a validation message. (Inherited from ValidationMessage.)
Public propertyDescriptionGets the description for a validation message. (Inherited from ValidationMessage.)
Public propertyFilereturn the name of the first referenced file, if one exists, otherwise null. (Overrides ValidationMessage.File.)
Public propertyHelpKeywordGets or sets the keyword to search for in the Help for Visual Studio. (Inherited from ValidationMessage.)
Public propertyLineGets the line number in the file to which the error or the warning refers. (Inherited from ValidationMessage.)
Public propertyReferencedFilesGets the names of files to which the ValidationMessage refers. (Inherited from ValidationMessage.)
Public propertyReferencedModelElementsGets the model elements that are referenced by this message. (Inherited from ValidationMessage.)
Public propertyTypeGets the type of validation message. (Inherited from ValidationMessage.)

Public methodConfigureconfigures the supplied task with values of this message.
Public methodEqualsChecks to see whether the validation message is equal to another object. (Inherited from ValidationMessage.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets an identifier for a ValidationMessage. (Inherited from ValidationMessage.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsMatch(TaskItem)determines if the specified taskItem represents this message.
Public methodIsMatch(IVsTaskItem)determines if the specified taskItem represents this message.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringIdentifies the validation message. (Inherited from ValidationMessage.)
Public methodUpdateFileReferences(IEnumerable<String>)Contains the names of files to update from a list of zero or more file names. (Inherited from ValidationMessage.)
Public methodUpdateFileReferences(String)Contains the name of the file to update. (Inherited from ValidationMessage.)
Public methodUpdateReferencedModelElementsUpdates 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.