ListView.ListId Property

Gets or sets the ID of the list that is rendered.

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

Syntax

'Declaration
Public Property ListId As String
    Get
    Set
'Usage
Dim instance As ListView
Dim value As String

value = instance.ListId

instance.ListId = value
public string ListId { get; set; }

Property Value

Type: System.String
A String that represents the ID of the list.

Remarks

To render the user information list, you can set ListId to the constant "UserInfo". Otherwise, set ListId to a string representation of the ID property of an SPList object.

See Also

Reference

ListView Class

ListView Members

Microsoft.SharePoint.WebControls Namespace