ViewCollection.GetById 方法

Returns the 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 GetById ( _
    guidId As Guid _
) As View
用法
Dim instance As ViewCollection
Dim guidId As Guid
Dim returnValue As View

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

参数

  • guidId
    类型:System.Guid

    The view identifier of the view to return.

返回值

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

异常

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

另请参阅

引用

ViewCollection 类

ViewCollection 成员

Microsoft.SharePoint.Client 命名空间