ListFormWebPart.ListId Property

Gets or sets the globally unique identifier (GUID) of the SPList in the ListFormWebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ListId As Guid
    Get
    Set
'Usage
Dim instance As ListFormWebPart
Dim value As Guid

value = instance.ListId

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

Property Value

Type: System.Guid
The GUID of the SPList in the ListFormWebPart.
This property also sets the ListName property to the string value of the GUID.

Implements

IListWebPart.ListId

See Also

Reference

ListFormWebPart Class

ListFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace