Compartilhar via


SPField.RelatedField Property

Gets or sets the internal name of a field to which the current field is related.

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

Syntax

'Declaration
Public Property RelatedField As String
    Get
    Set
'Usage
Dim instance As SPField
Dim value As String

value = instance.RelatedField

instance.RelatedField = value
public string RelatedField { get; set; }

Property Value

Type: System.String
A string that contains the name of the field to which the current field is related.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace

Other Resources

Custom Related Fields