共用方式為


SPField.SourceId property

取得可以是內建欄位定義的命名空間或其自訂欄位,識別建立所在的網站或清單的 GUID。

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

Syntax

'宣告
Public ReadOnly Property SourceId As String
    Get
'用途
Dim instance As SPField
Dim value As String

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

Property value

Type: System.String
字串,包含命名空間路徑或清單的 GUID。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace