Share via


ListViewWebPart.ListId property

Gets or sets the GUID of the SPList associated with the ListViewWebPart.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ListId As Guid
    Get
    Set
'Usage
Dim instance As ListViewWebPart
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 list associated with the ListViewWebPart.

Implements

IListWebPart.ListId

See also

Reference

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace