SPField.ValidationEcmaScript property
取得對應於該欄位的驗證公式ECMAScript函數。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property ValidationEcmaScript As String
Get
'用途
Dim instance As SPField
Dim value As String
value = instance.ValidationEcmaScript
public string ValidationEcmaScript { get; }
Property value
Type: System.String
會傳回包含ECMAScript函數的字串。
備註
若不設定任何驗證公式, ValidationEcmaScript屬性就會取得預設的指令碼會傳回true。