ViewCollection.GetByTitle 方法

Returns the list view with the specified title.

命名空间:  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 GetByTitle ( _
    strTitle As String _
) As View
用法
Dim instance As ViewCollection
Dim strTitle As String
Dim returnValue As View

returnValue = instance.GetByTitle(strTitle)
public View GetByTitle(
    string strTitle
)

参数

  • strTitle
    类型:System.String

    The title of the view to return.

返回值

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

异常

异常 条件
[System.ArgumentException]

No views in the view collection with the specified title. Error code: -2147024809.

[System.UnauthorizedAccessException]

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

备注

If there is more than one list view with the specified title, the server must return one list view. It must not be 空引用(无 在 Visual Basic 中).

另请参阅

引用

ViewCollection 类

ViewCollection 成员

Microsoft.SharePoint.Client 命名空间