共用方式為


IValidationContext.RuleViolations 屬性

取得目前的驗證規則違規集合。

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

語法

'宣告
ReadOnly Property RuleViolations As IValidationRuleViolationCollection
IValidationRuleViolationCollection RuleViolations { get; }

屬性值

型別:Microsoft.VisualStudio.SharePoint.Validation.IValidationRuleViolationCollection
物件,表示驗證規則違規。

備註

驗證規則應該加入這個集合,因為發現違規。

.NET Framework 安全性

請參閱

參考

IValidationContext 介面

Microsoft.VisualStudio.SharePoint.Validation 命名空間