This topic has not yet been rated - Rate this topic

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.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
public View GetView(
	Guid viewGuid
)

Parameters

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.
ExceptionCondition
[System.ArgumentException]

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

[System.UnauthorizedAccessException]

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

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.