共用方式為


SPField.ValidationMessage property

取得或設定要讓此欄位的驗證失敗時,對使用者顯示的訊息。

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

Syntax

'宣告
Public Property ValidationMessage As String
    Get
    Set
'用途
Dim instance As SPField
Dim value As String

value = instance.ValidationMessage

instance.ValidationMessage = value
public string ValidationMessage { get; set; }

Property value

Type: System.String
String 這是要驗證失敗時,對使用者顯示的訊息。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace