Condividi tramite


SPField.ValidationEcmaScript Property

Gets an ECMAScript function that corresponds to the field’s validation formula.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property ValidationEcmaScript As String
    Get
'Usage
Dim instance As SPField
Dim value As String

value = instance.ValidationEcmaScript
public string ValidationEcmaScript { get; }

Property Value

Type: System.String
Returns a string containing the ECMAScript function.

Remarks

If no validation formula is set, the ValidationEcmaScript property gets a default script that returns true.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace