ValidationContext.CurrentViolations 属性

获取验证上下文的验证消息的集合。

命名空间:  Microsoft.VisualStudio.Modeling.Validation
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.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 命名空间