VsValidationContext.ConstructValidationMessage 方法

允许派生类的 Overrideable 方法创建消息。

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

语法

声明
Protected Overrides Function ConstructValidationMessage ( _
    description As String, _
    code As String, _
    violationType As ViolationType, _
    ParamArray elements As ModelElement() _
) As ValidationMessage
protected override ValidationMessage ConstructValidationMessage(
    string description,
    string code,
    ViolationType violationType,
    params ModelElement[] elements
)

参数

返回值

类型:Microsoft.VisualStudio.Modeling.Validation.ValidationMessage

.NET Framework 安全性

请参见

参考

VsValidationContext 类

Microsoft.VisualStudio.Modeling.Shell 命名空间