共用方式為


IValidationResult.HasWarnings 屬性

取得是否有任何的規則驗證違規是警告。

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

語法

'宣告
ReadOnly Property HasWarnings As Boolean
    Get
bool HasWarnings { get; }

屬性值

型別:System.Boolean
如果任何規則違規的 Severity 屬性是 ValidationRuleViolationSeverity.Warning,則為 True,否則為 false。

.NET Framework 安全性

請參閱

參考

IValidationResult 介面

Microsoft.VisualStudio.SharePoint.Validation 命名空間