Condividi tramite


SPField.Required Property

Gets or sets a Boolean value that determines whether the field requires values.

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

Syntax

Public Property Required As Boolean
    Get
    Set

Dim instance As SPField
Dim value As Boolean

value = instance.Required

instance.Required = value
public bool Required { get; set; }

Property Value

Type: System.Boolean
true if the field requires values; otherwise, false.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace