ViewId property
Collapse the table of content
Expand the table of content

IListWebPart.ViewId property

Gets or sets the view identifier (ID) for the current Web Part.

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

int ViewId { get; set; }

Property value

Type: System.Int32
A 32-bit integer that identifies the view that is associated with the current Web Part.
© 2016 Microsoft