Freigeben über


TaskValidationMessage Class

Definition

TaskValidationMessages are supplied by the VsValidationContext (i.e. ConstructValidationMessage override). It contains the information to work with the VS ErrorList tool window. It's capable to navigate to the shape
in the diagram from the offending model element.

public ref class TaskValidationMessage : Microsoft::VisualStudio::Modeling::Validation::ValidationMessage
public class TaskValidationMessage : Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
type TaskValidationMessage = class
    inherit ValidationMessage
Public Class TaskValidationMessage
Inherits ValidationMessage
Inheritance
TaskValidationMessage

Constructors

TaskValidationMessage(ValidationContext, String, TaskCategory, String, ViolationType, String)

ctor

Properties

Category

Task category.

Code

Error or warning code

(Inherited from ValidationMessage)
Column

column within line of text where error occurs.

(Inherited from ValidationMessage)
Context

context against which this validation message was generated.

(Inherited from ValidationMessage)
Description

Problem descrription.

(Inherited from ValidationMessage)
File

return the name of the first referenced file, if one exists, otherwise null.

HelpKeyword

the help keyword is the validation's error code

(Inherited from ValidationMessage)
Line

line number within the file

(Inherited from ValidationMessage)
ReferencedFiles

Update the related files.

(Inherited from ValidationMessage)
ReferencedModelElements

model elements referenced by this message.

(Inherited from ValidationMessage)
Type

The type of message: e.g. Error or Warning

(Inherited from ValidationMessage)

Methods

Configure(ValidationTask)

configures the supplied task with values of this message.

Equals(Object)

define equality between two ValidationMessages. Override in base class if this definition is not sufficient.

(Inherited from ValidationMessage)
GetHashCode()

reuse description text's has code.

(Inherited from ValidationMessage)
IsMatch(IVsTaskItem)

determines if the specified taskItem represents this message.

IsMatch(TaskItem)

determines if the specified taskItem represents this message.

ToString() (Inherited from ValidationMessage)
UpdateFileReferences(IEnumerable<String>)

Update the related files.

(Inherited from ValidationMessage)
UpdateFileReferences(String) (Inherited from ValidationMessage)
UpdateReferencedModelElements(IEnumerable<ModelElement>)

Update the referenced model elements

(Inherited from ValidationMessage)

Applies to