FeatureCollection.GetById 方法

返回给定的功能标识符的功能。

命名空间:  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 ( _
    featureId As Guid _
) As Feature
用法
Dim instance As FeatureCollection
Dim featureId As Guid
Dim returnValue As Feature

returnValue = instance.GetById(featureId)
public Feature GetById(
    Guid featureId
)

参数

  • featureId
    类型:System.Guid

    要返回的功能的功能标识符。

返回值

类型:Microsoft.SharePoint.Client.Feature
返回Feature

异常

异常 条件
[System.UnauthorizedAccessException]

当前用户没有足够的权限。错误代码 ︰ 为-2147024891。

备注

如果没有功能可用于给定的功能标识符,则返回空引用(无 在 Visual Basic 中) 。

另请参阅

引用

FeatureCollection 类

FeatureCollection 成员

Microsoft.SharePoint.Client 命名空间