ListViewWebPart.ListName property

Gets or sets the globally unique identifier (GUID) of the list that is displayed in the Web Part.

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

Syntax

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

value = instance.ListName

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

Property value

Type: System.String
A string that contains the GUID of the list with all-uppercase characters and enclosed within curly braces ({ }).

See also

Reference

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace