SPFieldLink.Required property

Gets or sets a value that indicates whether the column that is referenced must have a value.

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

Syntax

'Declaration
Public Property Required As Boolean
    Get
    Set
'Usage
Dim instance As SPFieldLink
Dim value As Boolean

value = instance.Required

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

Property value

Type: System.Boolean
true if the column that is referenced must have a value; otherwise, false.

Remarks

The initial value of this property is identical to the value of the corresponding Required property of the SPField object that is passed as an argument to the constructor.

See also

Reference

SPFieldLink class

SPFieldLink members

Microsoft.SharePoint namespace

Other resources

Fields and Field References

Introduction to Columns

Introduction to Content Types