List.GetView 方法

Returns the list view with the specified view identifier.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Function GetView ( _
    viewGuid As Guid _
) As View
用法
Dim instance As List
Dim viewGuid As Guid
Dim returnValue As View

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

参数

  • viewGuid
    类型:System.Guid

    Specifies the view identifier.

返回值

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

异常

异常 条件
[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.

另请参阅

引用

List 类

List 成员

Microsoft.SharePoint.Client 命名空间