Share via


ViewCollection.GetById method

Returns the view with the specified view identifier.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetById ( _
    guidId As Guid _
) As View
'Usage
Dim instance As ViewCollection
Dim guidId As Guid
Dim returnValue As View

returnValue = instance.GetById(guidId)
public View GetById(
    Guid guidId
)

Parameters

  • guidId
    Type: System.Guid

    The view identifier of the view to return.

Return value

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

Exceptions

Exception Condition
[System.ArgumentException]

No views in the view collection with the specified view identifier. Error code: -2147024809.

[System.UnauthorizedAccessException]

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

See also

Reference

ViewCollection class

ViewCollection members

Microsoft.SharePoint.Client namespace