共用方式為


SPField.SourceId Property

Gets either the namespace that defines a built-in field or, if it a custom field, the GUID that identifies the list or Web site where it was created.

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

Syntax

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

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

Property Value

Type: System.String
A string that contains either a namespace path or a list GUID.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace