允许派生类的 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
)
参数
- description
类型:System.String
- code
类型:System.String
- violationType
类型:Microsoft.VisualStudio.Modeling.Validation.ViolationType
- elements
类型:array<Microsoft.VisualStudio.Modeling.ModelElement[]
返回值
类型:Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。