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.GuidSpecifies 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.