Compartir a través de


ViewCollection.GetById Method

Returns the 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)

Syntax

'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
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