DataFormWebPart.ViewId property

Gets or sets the view identifier (ID) for the DataFormWebPart.

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

Syntax

'Declaration
<WebBrowsableAttribute(False)> _
Public Property ViewId As Integer
    Get
    Set
'Usage
Dim instance As DataFormWebPart
Dim value As Integer

value = instance.ViewId

instance.ViewId = value
[WebBrowsableAttribute(false)]
public int ViewId { get; set; }

Property value

Type: System.Int32
The ID of view that is associated with the DataFormWebPart. The default value is 0.

Implements

IListWebPart.ViewId

See also

Reference

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace