ValidationMessage Constructor (ValidationContext, String)
Initializes a new instance of the ValidationMessage class using a context and a description for the message.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Protected Friend Sub New ( _
context As ValidationContext, _
description As String _
)
protected internal ValidationMessage(
ValidationContext context,
string description
)
protected public:
ValidationMessage(
ValidationContext^ context,
String^ description
)
new :
context:ValidationContext *
description:string -> ValidationMessage
function ValidationMessage(
context : ValidationContext,
description : String
)
Parameters
context
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContextThe validation context for the ValidationMessage.
description
Type: System.StringA description of the problem. This text will appear in the Visual Studio Output window.
.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.