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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Property ViewId As Integer
Get
Set
'Usage
Dim instance As IListWebPart
Dim value As Integer
value = instance.ViewId
instance.ViewId = value
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.