Share via


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)

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.

See also

Reference

IListWebPart interface

IListWebPart members

Microsoft.SharePoint.WebPartPages namespace