ValidationMessage Constructor (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.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Protected Friend Sub New ( _
context As ValidationContext, _
description As String, _
code As String, _
type As ViolationType _
)
protected internal ValidationMessage(
ValidationContext context,
string description,
string code,
ViolationType type
)
protected public:
ValidationMessage(
ValidationContext^ context,
String^ description,
String^ code,
ViolationType type
)
new :
context:ValidationContext *
description:string *
code:string *
type:ViolationType -> ValidationMessage
function ValidationMessage(
context : ValidationContext,
description : String,
code : String,
type : ViolationType
)
Parameters
context
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContextThe validation context for the ValidationMessage.
description
Type: StringA description of the problem. This text will appear in the Visual Studio Output window.
code
Type: StringAn identifier for the message.
type
Type: Microsoft.VisualStudio.Modeling.Validation.ViolationTypeThe type of ValidationMessage (error, warning, or message).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.