共用方式為


ListFormWebPart.ListId property

取得或設定在ListFormWebPart的SPList的全域唯一識別項 (GUID)。

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

Syntax

'宣告
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property ListId As Guid
    Get
    Set
'用途
Dim instance As ListFormWebPart
Dim value As Guid

value = instance.ListId

instance.ListId = value
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
public Guid ListId { get; set; }

Property value

Type: System.Guid
SPList 在ListFormWebPart中的 GUID。
這個屬性也會將ListName屬性設定 GUID 的字串值。

Implements

IListWebPart.ListId

請參閱

參照

ListFormWebPart class

ListFormWebPart members

Microsoft.SharePoint.WebPartPages namespace