ListViewWebPart.ViewGuid property
Gets or sets the GUID for the SharePoint Foundation view that is used in the Web Part.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<WebPartStorageAttribute(Storage.None)> _
<RequiresDesignerPermissionAttribute> _
Public Property ViewGuid As String
Get
Set
'Usage
Dim instance As ListViewWebPart
Dim value As String
value = instance.ViewGuid
instance.ViewGuid = value
[WebPartStorageAttribute(Storage.None)]
[RequiresDesignerPermissionAttribute]
public string ViewGuid { get; set; }
Property value
Type: System.String
A string that contains the GUID of the view with all-uppercase characters and enclosed within curly braces ({ }).