共用方式為


ValidationContext.ValidationSubjects 屬性

取得要驗證的模型項目清單。

命名空間:  Microsoft.VisualStudio.Modeling.Validation
組件:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

語法

'宣告
Public ReadOnly Property ValidationSubjects As ReadOnlyCollection(Of ModelElement)
public ReadOnlyCollection<ModelElement> ValidationSubjects { get; }

屬性值

型別:System.Collections.ObjectModel.ReadOnlyCollection<ModelElement>
傳回唯讀的集合模型項目。

備註

此集合包含模型的所有項目可以有套用至它們的驗證方法。

.NET Framework 安全性

請參閱

參考

ValidationContext 類別

Microsoft.VisualStudio.Modeling.Validation 命名空間