ValidationContext.CurrentViolations 属性

收到验证消息的集合验证上下文。

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

语法

声明
Public ReadOnly Property CurrentViolations As ReadOnlyCollection(Of ValidationMessage)
public ReadOnlyCollection<ValidationMessage> CurrentViolations { get; }

属性值

类型:System.Collections.ObjectModel.ReadOnlyCollection<ValidationMessage>
返回 LogMessage 对象的只读集合。

.NET Framework 安全性

请参见

参考

ValidationContext 类

Microsoft.VisualStudio.Modeling.Validation 命名空间