Share via


ListViewWebPart.WebId property

Gets or sets the GUID of the SPWeb to which the ListViewWebPart belongs.

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

Syntax

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

value = instance.WebId

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

Property value

Type: System.Guid
A GUID of the SPWeb.

See also

Reference

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace