다음을 통해 공유


ListViewWebPart.ViewId Property

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

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

Syntax

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

value = instance.ViewId

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

Property Value

Type: System.Int32
The ID of view that is associated with the ListViewWebPart.

Implements

IListWebPart.ViewId

See Also

Reference

ListViewWebPart Class

ListViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace