다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property Required As Boolean
    Get
    Set
'Usage
Dim instance As SPFieldLink
Dim value As Boolean

value = instance.Required

instance.Required = value
[ClientCallableAttribute]
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