共用方式為


ValidationErrorContext.ErrorMessages property

取得驗證錯誤訊息。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property ErrorMessages As IEnumerable(Of String)
    Get
'用途
Dim instance As ValidationErrorContext
Dim value As IEnumerable(Of String)

value = instance.ErrorMessages
public IEnumerable<string> ErrorMessages { get; }

Property value

Type: System.Collections.Generic.IEnumerable<String>
驗證錯誤訊息。

請參閱

參照

ValidationErrorContext class

ValidationErrorContext members

Microsoft.SharePoint namespace