Share via


DataViewWebPart.ViewId property

An identifier used to keep track of what form (if any) this web part belongs to. Implementation is for IListWebPart.

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

Syntax

'Declaration
<WebPartStorageAttribute(Storage.None)> _
<BrowsableAttribute(False)> _
Public Property ViewId As Integer
    Get
    Set
'Usage
Dim instance As DataViewWebPart
Dim value As Integer

value = instance.ViewId

instance.ViewId = value
[WebPartStorageAttribute(Storage.None)]
[BrowsableAttribute(false)]
public int ViewId { get; set; }

Property value

Type: System.Int32
The form Id if the web part is a form, otherwise this property is the web part's view id.

Implements

IListWebPart.ViewId

See also

Reference

DataViewWebPart class

DataViewWebPart members

Microsoft.SharePoint.WebPartPages namespace