ValidationMessage 构造函数 (ValidationContext, String, String, ViolationType)

使用一个上下文、一个标题、一代码和冲突类型消息的, ValidationMessage 初始化类的新实例。

命名空间:  Microsoft.VisualStudio.Modeling.Validation
程序集:  Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

语法

声明
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
)

参数

  • description
    类型:System.String
    问题的说明。此文本将显示在 Visual Studio " 输出 " 窗口。

.NET Framework 安全性

请参见

参考

ValidationMessage 类

ValidationMessage 重载

Microsoft.VisualStudio.Modeling.Validation 命名空间