Freigeben über


List.GetView-Methode

Returns the list view with the specified view identifier.

Namespace:  Microsoft.SharePoint.Client
Assemblys:   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)

Syntax

'Declaration
Public Function GetView ( _
    viewGuid As Guid _
) As View
'Usage
Dim instance As List
Dim viewGuid As Guid
Dim returnValue As View

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

Parameter

  • viewGuid
    Typ: System.Guid

    Specifies the view identifier.

Rückgabewert

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

Ausnahmen

Ausnahme Bedingung
[System.ArgumentException]

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

[System.UnauthorizedAccessException]

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

Hinweise

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

Siehe auch

Referenz

List Klasse

List-Member

Microsoft.SharePoint.Client-Namespace