SP.List.getView(viewGuid) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Returns the list view with the specified view identifier.

var value = SP.List.getView(viewGuid);

Parameters

  • viewGuid
    Specifies the view identifier.

Type: SP.Guid

Return Value

Type: SP.View

Exceptions

  • [System.ArgumentException]
    List view does not exist. Error code: -2147024809.
  • [System.UnauthorizedAccessException]
    The current user has insufficient permissions. Error code: -2147024891.

Remarks

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

Applies To

SP.List Class

See Also

Reference

SP.List Methods

SP.List Properties

SP Namespace