List.GetView Method

Returns the list view with the specified view identifier.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)


<RemoteAttribute> _
Public Function GetView ( _
    viewGuid As Guid _
) As View
Dim instance As List
Dim viewGuid As Guid
Dim returnValue As View

returnValue = instance.GetView(viewGuid)
public View GetView(
    Guid viewGuid


  • viewGuid
    Type: System.Guid

    Specifies the view identifier.

Return Value

Type: Microsoft.SharePoint.Client.View
Returns a View instance representing the list view with the specified view identifier.


Exception Condition

List view does not exist. Error code: -2147024809.


The current user has insufficient permissions. Error code: -2147024891.


If an empty GUID is specified it must return the default view of the list.

See Also


List Class

List Members

Microsoft.SharePoint.Client Namespace