Share via


ValidationMessage.ToString Method

Identifies the validation message.

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

Syntax

'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As ValidationMessage 
Dim returnValue As String 

returnValue = instance.ToString()
public override string ToString()
public:
virtual String^ ToString() override
public override function ToString() : String

Return Value

Type: System.String
Returns a string that identifies the ValidationMessage.

Remarks

The string returned is the value of the Code property (if the ValidationMessage is an error or a warning), followed by a colon (:), followed by the value of the Description property.

.NET Framework Security

See Also

Reference

ValidationMessage Class

ValidationMessage Members

Microsoft.VisualStudio.Modeling.Validation Namespace