共用方式為


DataFormWebPart.ViewId Property

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

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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